weston-launch: cleanup - return failures in main with EXIT_FAILURE
Signed-off-by: Siddharth Heroor <heroor@gmail.com>
This commit is contained in:
committed by
Kristian Høgsberg
parent
e74dc19aa1
commit
d6be88b5e2
+5
-5
@@ -558,7 +558,7 @@ main(int argc, char *argv[])
|
|||||||
break;
|
break;
|
||||||
case 'h':
|
case 'h':
|
||||||
help("weston-launch");
|
help("weston-launch");
|
||||||
exit(1);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -588,20 +588,20 @@ main(int argc, char *argv[])
|
|||||||
" - or add yourself to the 'weston-launch' group.");
|
" - or add yourself to the 'weston-launch' group.");
|
||||||
|
|
||||||
if (setup_tty(&wl, tty) < 0)
|
if (setup_tty(&wl, tty) < 0)
|
||||||
return 1;
|
exit(EXIT_FAILURE);
|
||||||
|
|
||||||
if (setup_pam(&wl) < 0)
|
if (setup_pam(&wl) < 0)
|
||||||
return 1;
|
exit(EXIT_FAILURE);
|
||||||
|
|
||||||
wl.epollfd = epoll_create1(EPOLL_CLOEXEC);
|
wl.epollfd = epoll_create1(EPOLL_CLOEXEC);
|
||||||
if (wl.epollfd < 0)
|
if (wl.epollfd < 0)
|
||||||
error(1, errno, "epoll create failed");
|
error(1, errno, "epoll create failed");
|
||||||
|
|
||||||
if (setup_launcher_socket(&wl) < 0)
|
if (setup_launcher_socket(&wl) < 0)
|
||||||
return 1;
|
exit(EXIT_FAILURE);
|
||||||
|
|
||||||
if (setup_signals(&wl) < 0)
|
if (setup_signals(&wl) < 0)
|
||||||
return 1;
|
exit(EXIT_FAILURE);
|
||||||
|
|
||||||
switch ((wl.child = fork())) {
|
switch ((wl.child = fork())) {
|
||||||
case -1:
|
case -1:
|
||||||
|
|||||||
Reference in New Issue
Block a user