mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-08 13:38:05 +02:00
use _exit instead of exit if client fails to exec
exit() calls atexit() handlers and C++ destructors (e.g. a C++ weston module) which could destroy state that the main process depends on (e.g. ioctl's, tmpfiles, sockets, etc...). If an exec fails, call _exit() instead of exit(). v2: prefer _exit over _Exit Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
This commit is contained in:
parent
8d7562e47b
commit
47ba3a0f11
1 changed files with 1 additions and 1 deletions
|
|
@ -217,7 +217,7 @@ weston_client_launch(struct weston_compositor *compositor,
|
|||
|
||||
if (pid == 0) {
|
||||
child_client_exec(sv[1], path);
|
||||
exit(-1);
|
||||
_exit(-1);
|
||||
}
|
||||
|
||||
close(sv[1]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue