summaryrefslogtreecommitdiff
path: root/Shell/Job.h
diff options
context:
space:
mode:
authorAnotherTest <ali.mpfard@gmail.com>2020-09-30 14:05:12 +0330
committerAndreas Kling <kling@serenityos.org>2020-10-01 21:20:14 +0200
commit519d1811fd9fc159dd55fa416a653706efd496ff (patch)
treec5317989ec807c91a5bd80ad2965329d61682eb0 /Shell/Job.h
parenta7828434c0bfb80ece6ce9a712e0d1a023a4a7e8 (diff)
downloadserenity-519d1811fd9fc159dd55fa416a653706efd496ff.zip
Shell: Wait for *any* child to change state when receiving a SIGCHLD
This really just works around the core issue, which is that we have no reliable way to know exactly who raised the signal (yet). Fixes #3645, in a very weird (yet apparently standard) way.
Diffstat (limited to 'Shell/Job.h')
-rw-r--r--Shell/Job.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Shell/Job.h b/Shell/Job.h
index 9f89bf54b8..b3ad9f6765 100644
--- a/Shell/Job.h
+++ b/Shell/Job.h
@@ -52,7 +52,8 @@ public:
#ifdef JOB_TIME_INFO
if (m_active) {
auto elapsed = m_command_timer.elapsed();
- dbg() << "Command \"" << m_cmd << "\" finished in " << elapsed << " ms";
+ // Don't mistake this for the command!
+ dbg() << "Job entry \"" << m_cmd << "\" deleted in " << elapsed << " ms";
}
#endif
}