diff options
author | David Zeuthen <davidz@redhat.com> | 2008-03-03 23:48:10 -0500 |
---|---|---|
committer | David Zeuthen <davidz@redhat.com> | 2008-03-03 23:48:10 -0500 |
commit | 20dc74b537d4cf3447a86d12224db5e158ce0bef (patch) | |
tree | 1fec4e08afbf575364c7191ea1280bd08f49ef4e /hald-runner | |
parent | 1e7aece6160b2def655dba2d07f28b505633a145 (diff) |
print more debug information
Diffstat (limited to 'hald-runner')
-rw-r--r-- | hald-runner/runner.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hald-runner/runner.c b/hald-runner/runner.c index 4847655a..1184ce28 100644 --- a/hald-runner/runner.c +++ b/hald-runner/runner.c @@ -151,7 +151,8 @@ run_exited(GPid pid, gint status, gpointer data) run_data *rd = (run_data *)data; char **error = NULL; - printf("%s exited\n", rd->r->argv[0]); + printf("pid %d: rc=%d signaled=%d: %s\n", + pid, WEXITSTATUS(status), WIFSIGNALED(status), rd->r->argv[0]); rd->watch = 0; if (rd->sent_kill == TRUE) { /* We send it a kill, so ignore */ |