From 01f9f2a5f906058eb21b69a224e9f13e69529aeb Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Sat, 16 Jan 2016 22:14:35 +0100 Subject: better error messages --- xe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xe.c') 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); } -- cgit 1.4.1