summaryrefslogtreecommitdiff
path: root/kill.c
diff options
context:
space:
mode:
Diffstat (limited to 'kill.c')
-rw-r--r--kill.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/kill.c b/kill.c
index 7ade822..dd5ca49 100644
--- a/kill.c
+++ b/kill.c
@@ -158,7 +158,7 @@ extern int kill_main(int argc, char **argv)
}
}
fprintf(stderr, "\n\n");
- exit(TRUE);
+ return EXIT_SUCCESS;
}
break;
case '-':
@@ -236,11 +236,12 @@ extern int kill_main(int argc, char **argv)
* upon exit, so we can save a byte or two */
argv++;
}
- exit (all_found);
+ if (all_found == FALSE)
+ return EXIT_FAILURE;
}
#endif
- exit(TRUE);
+ return EXIT_SUCCESS;
end: