diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2011-09-21 23:22:11 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2011-09-21 23:35:24 +0200 |
commit | 8ab7539540924bf30a8ed88c9e91915e16dfd91b (patch) | |
tree | 03e840578f0b7a3172e19f11394defd4d04441a2 /sal | |
parent | cdd243cdeaaa55e989774cc76666c5ec863d651b (diff) |
In ChildStatusProc, calculate a meaningful status for processes killed by a signal.
Diffstat (limited to 'sal')
-rw-r--r-- | sal/osl/unx/process.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sal/osl/unx/process.c b/sal/osl/unx/process.c index de30ddb6e69f..097c237467fe 100644 --- a/sal/osl/unx/process.c +++ b/sal/osl/unx/process.c @@ -643,6 +643,8 @@ static void ChildStatusProc(void *pData) { if (WIFEXITED(status)) pChild->m_status = WEXITSTATUS(status); + else if (WIFSIGNALED(status)) + pChild->m_status = 128 + WTERMSIG(status); else pChild->m_status = -1; |