diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2016-01-16 22:14:35 +0100 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2016-01-16 22:14:35 +0100 |
commit | 01f9f2a5f906058eb21b69a224e9f13e69529aeb (patch) | |
tree | 2785619180d68d4866a6f988dbb1f219c9a6581a /xe.c | |
parent | 8865b3944af86db9090e8ca5006c997638c153d3 (diff) | |
download | xe-01f9f2a5f906058eb21b69a224e9f13e69529aeb.tar.gz xe-01f9f2a5f906058eb21b69a224e9f13e69529aeb.tar.xz xe-01f9f2a5f906058eb21b69a224e9f13e69529aeb.zip |
better error messages
Diffstat (limited to 'xe.c')
-rw-r--r-- | xe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xe.c b/xe.c index e55ccdc..e287542 100644 --- a/xe.c +++ b/xe.c @@ -86,13 +86,13 @@ mywait() if (WEXITSTATUS(status) >= 1 && WEXITSTATUS(status) <= 125) { exit(123); } else if (WEXITSTATUS(status) == 255) { - fprintf(stderr, "xe: %d exited with status 255\n", pid); + fprintf(stderr, "xe: pid %d exited with status 255\n", pid); exit(124); } else if (WEXITSTATUS(status) > 125) { exit(WEXITSTATUS(status)); } } else if (WIFSIGNALED(status)) { - fprintf(stderr, "xe: %d terminated by signal %d\n", + fprintf(stderr, "xe: pid %d terminated by signal %d\n", pid, WTERMSIG(status)); exit(125); } |