about summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-01-16 22:14:35 +0100
committerChristian Neukirchen <chneukirchen@gmail.com>2016-01-16 22:14:35 +0100
commit01f9f2a5f906058eb21b69a224e9f13e69529aeb (patch)
tree2785619180d68d4866a6f988dbb1f219c9a6581a
parent8865b3944af86db9090e8ca5006c997638c153d3 (diff)
downloadxe-01f9f2a5f906058eb21b69a224e9f13e69529aeb.tar.gz
xe-01f9f2a5f906058eb21b69a224e9f13e69529aeb.tar.xz
xe-01f9f2a5f906058eb21b69a224e9f13e69529aeb.zip
better error messages
-rw-r--r--xe.c4
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);
 	}