diff options
Diffstat (limited to 'src/core/pidwait.c')
-rw-r--r-- | src/core/pidwait.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/pidwait.c b/src/core/pidwait.c index 82a11c6c..f54aa34d 100644 --- a/src/core/pidwait.c +++ b/src/core/pidwait.c @@ -53,8 +53,9 @@ static int child_check(void) next = tmp->next; if (waitpid(pid, &status, WNOHANG) > 0) { /* process terminated, remove from list */ + signal_emit_id(signal_pidwait, 2, tmp->data, + GINT_TO_POINTER(status)); pids = g_slist_remove(pids, tmp->data); - signal_emit_id(signal_pidwait, 1, tmp->data); } } return 1; |