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 f782fa1e6c728124a271059f8867d82404a5a67c..bde8dbd7750d7dc1511f80c9f1ed141e94a81fce 100644
(file)
--- a/
reboot.c
+++ b/
reboot.c
@@
-26,8
+26,12
@@
extern int reboot_main(int argc, char **argv)
{
+#ifdef BB_FEATURE_LINUXRC
/* don't assume init's pid == 1 */
- exit(kill(findInitPid(), SIGINT));
+ return(kill(*(findPidByName("init")), SIGINT));
+#else
+ return(kill(1, SIGINT));
+#endif
}
/*