diff options
author | Siddharth Heroor <heroor@gmail.com> | 2013-03-12 02:36:52 +0530 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2013-03-19 14:41:05 -0400 |
commit | d6be88b5e2f0382e52d640b92dd46b4e5e22b1ca (patch) | |
tree | 8943f35b98cc79a1c5992f5dafd640e6d78567bb | |
parent | e74dc19aa1b4abf16bf07d3c4955b7672de5347d (diff) |
weston-launch: cleanup - return failures in main with EXIT_FAILURE
Signed-off-by: Siddharth Heroor <heroor@gmail.com>
-rw-r--r-- | src/weston-launch.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/weston-launch.c b/src/weston-launch.c index 407d135..64d4a8a 100644 --- a/src/weston-launch.c +++ b/src/weston-launch.c @@ -558,7 +558,7 @@ main(int argc, char *argv[]) break; case 'h': 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."); if (setup_tty(&wl, tty) < 0) - return 1; + exit(EXIT_FAILURE); if (setup_pam(&wl) < 0) - return 1; + exit(EXIT_FAILURE); wl.epollfd = epoll_create1(EPOLL_CLOEXEC); if (wl.epollfd < 0) error(1, errno, "epoll create failed"); if (setup_launcher_socket(&wl) < 0) - return 1; + exit(EXIT_FAILURE); if (setup_signals(&wl) < 0) - return 1; + exit(EXIT_FAILURE); switch ((wl.child = fork())) { case -1: |