xwayland: do not check execve() return value
Simplifies the code a bit. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
This commit is contained in:
committed by
Pekka Paalanen
parent
1bd92dac01
commit
764c2aff8f
@@ -285,12 +285,13 @@ spawn_xserver(void *user_data, const char *display, int abstract_fd, int unix_fd
|
|||||||
if (!ret)
|
if (!ret)
|
||||||
_exit(EXIT_FAILURE);
|
_exit(EXIT_FAILURE);
|
||||||
|
|
||||||
if (execve(xserver, (char *const *)argv, envp) < 0) {
|
execve(xserver, (char *const *)argv, envp);
|
||||||
|
/* execve does not return on success, so it failed */
|
||||||
|
|
||||||
if (exec_failure_msg) {
|
if (exec_failure_msg) {
|
||||||
write(STDERR_FILENO, exec_failure_msg,
|
write(STDERR_FILENO, exec_failure_msg,
|
||||||
strlen(exec_failure_msg));
|
strlen(exec_failure_msg));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
_exit(EXIT_FAILURE);
|
_exit(EXIT_FAILURE);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user