From a58290b38b87fce5311db0fc3b8cc776457b4d8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Tue, 18 Jun 2013 01:03:02 -0400 Subject: [PATCH] xwayland: Use _exit() when exec() fails Similar to 3b64d6 but for when we fork the X server. --- src/xwayland/launcher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xwayland/launcher.c b/src/xwayland/launcher.c index a8ad4780..70481312 100644 --- a/src/xwayland/launcher.c +++ b/src/xwayland/launcher.c @@ -72,7 +72,7 @@ weston_xserver_handle_event(int listen_fd, uint32_t mask, void *data) "-terminate", NULL) < 0) weston_log("exec failed: %m\n"); - exit(-1); + _exit(EXIT_FAILURE); default: weston_log("forked X server, pid %d\n", wxs->process.pid);