projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Oops. Forgot the usleep.c file.
[oweals/busybox.git]
/
reboot.c
diff --git
a/reboot.c
b/reboot.c
index fc01ea004fe52e67abdf1abbcbfd105bf3e59caf..2f8b2b4a5275487b25e58dd893c2985c748aea1c 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(findPidByName("init"), SIGINT));
+#else
+ exit(kill(1, SIGINT));
+#endif
}
/*