summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/simple-xinit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/simple-xinit.c b/test/simple-xinit.c
index 89189a609..1fc31be26 100644
--- a/test/simple-xinit.c
+++ b/test/simple-xinit.c
@@ -133,6 +133,9 @@ start_client(char *const *client_args, int display)
return 1;
}
+ if (!WIFEXITED(wstatus))
+ return 1;
+
return WEXITSTATUS(wstatus);
} else {
execvp(client_args[0], client_args);