]> git.ipfire.org Git - thirdparty/lxc.git/commit
lxc_*.c: don't exit with -1
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Mon, 7 Apr 2014 16:56:20 +0000 (11:56 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Mon, 7 Apr 2014 21:19:14 +0000 (17:19 -0400)
commit13bc2fd2370f8e3778d81f58ac8dda5746550a4f
treeb559fa6b1cc79e0f1b0fb3a916c0705d3299ce75
parent8dac6e74c442c37134f5b2208b777735cc60a716
lxc_*.c: don't exit with -1

In this patch I tried to stick with each file's coding style, however I
think we should probably change that.  Every main() should always not
return and only exit;  they should always return EXIT_SUCCESS or EXIT_FAILURE
with the only exceptions being cases where we are returning a child's
exit status (lxc_execute, lxc_attach, lxc_init).

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
18 files changed:
doc/lxc-stop.sgml.in
src/lxc/lxc_attach.c
src/lxc/lxc_cgroup.c
src/lxc/lxc_clone.c
src/lxc/lxc_config.c
src/lxc/lxc_console.c
src/lxc/lxc_destroy.c
src/lxc/lxc_execute.c
src/lxc/lxc_freeze.c
src/lxc/lxc_init.c
src/lxc/lxc_monitor.c
src/lxc/lxc_monitord.c
src/lxc/lxc_snapshot.c
src/lxc/lxc_stop.c
src/lxc/lxc_unfreeze.c
src/lxc/lxc_unshare.c
src/lxc/lxc_usernsexec.c
src/lxc/lxc_wait.c