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]
/
halt.c
diff --git
a/halt.c
b/halt.c
index f2c9828d44829e4a1254711dd3a63bb45ab37cad..81d24cf2de7ffc631b85bae6767a7650117a0172 100644
(file)
--- a/
halt.c
+++ b/
halt.c
@@
-26,6
+26,10
@@
extern int halt_main(int argc, char **argv)
{
+#ifdef BB_FEATURE_LINUXRC
/* don't assume init's pid == 1 */
exit(kill(findPidByName("init"), SIGUSR1));
+#else
+ exit(kill(1, SIGUSR1));
+#endif
}