projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Added support for ignoring '-g' per GNU ls, thanks to David Vrabel
[oweals/busybox.git]
/
reboot.c
diff --git
a/reboot.c
b/reboot.c
index 6e1f3d53b462d1eadb14064cf8d64c5709c95bda..bde8dbd7750d7dc1511f80c9f1ed141e94a81fce 100644
(file)
--- a/
reboot.c
+++ b/
reboot.c
@@
-28,9
+28,9
@@
extern int reboot_main(int argc, char **argv)
{
#ifdef BB_FEATURE_LINUXRC
/* don't assume init's pid == 1 */
-
exit
(kill(*(findPidByName("init")), SIGINT));
+
return
(kill(*(findPidByName("init")), SIGINT));
#else
-
exit
(kill(1, SIGINT));
+
return
(kill(1, SIGINT));
#endif
}