projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove misguided klude around for 2.4.x-test* brokenness. Al Viro
[oweals/busybox.git]
/
reboot.c
diff --git
a/reboot.c
b/reboot.c
index ef2a848ee467cd31cb251e71218036fbacbf31fb..bde8dbd7750d7dc1511f80c9f1ed141e94a81fce 100644
(file)
--- a/
reboot.c
+++ b/
reboot.c
@@
-26,6
+26,18
@@
extern int reboot_main(int argc, char **argv)
{
extern int reboot_main(int argc, char **argv)
{
+#ifdef BB_FEATURE_LINUXRC
/* don't assume init's pid == 1 */
/* don't assume init's pid == 1 */
- exit(kill(findInitPid(), SIGINT));
+ return(kill(*(findPidByName("init")), SIGINT));
+#else
+ return(kill(1, SIGINT));
+#endif
}
}
+
+/*
+Local Variables:
+c-file-style: "linux"
+c-basic-offset: 4
+tab-width: 4
+End:
+*/