summaryrefslogtreecommitdiffstats
path: root/commands.c
diff options
context:
space:
mode:
authorBert Münnich <ber.t@gmx.com>2011-09-26 21:20:33 +0200
committerBert Münnich <ber.t@gmx.com>2011-09-26 21:20:33 +0200
commit9e52ae768e628ffbefabd6f7445d47d10c0aced9 (patch)
tree8423139868d1a67b2c684697baec8ad94f798eab /commands.c
parent8e1d8a97d3558d704a764d75234729fa2440d527 (diff)
parent3a81af41ac3ebdcfa13f70cca0408b2d7acfff3f (diff)
downloadnsxiv-9e52ae768e628ffbefabd6f7445d47d10c0aced9.tar.zst
Merge commit '3a81af4'
Diffstat (limited to 'commands.c')
-rw-r--r--commands.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/commands.c b/commands.c
index 7eef1fc..6fb25fc 100644
--- a/commands.c
+++ b/commands.c
@@ -48,7 +48,7 @@ extern int filecnt, fileidx;
bool it_quit(arg_t a) {
cleanup();
- exit(0);
+ exit(EXIT_SUCCESS);
}
bool it_switch_mode(arg_t a) {
@@ -388,7 +388,7 @@ bool it_open_with(arg_t a) {
execlp(prog, prog,
files[mode == MODE_IMAGE ? fileidx : tns.sel].path, NULL);
warn("could not exec: %s", prog);
- exit(1);
+ exit(EXIT_FAILURE);
} else if (pid < 0) {
warn("could not fork. program was: %s", prog);
}
@@ -415,7 +415,7 @@ bool it_shell_cmd(arg_t a) {
if ((pid = fork()) == 0) {
execl("/bin/sh", "/bin/sh", "-c", cmdline, NULL);
warn("could not exec: /bin/sh. command line was: %s", cmdline);
- exit(1);
+ exit(EXIT_FAILURE);
} else if (pid < 0) {
warn("could not fork. command line was: %s", cmdline);
return false;