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