projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fixed NFS so it supports 2.4.x kernels and NFSv3. Should close bug #1009.
[oweals/busybox.git]
/
poweroff.c
diff --git
a/poweroff.c
b/poweroff.c
index bc8e67716f412e25f918055b78b193e8563af50f..126a0fb9496e81fc08c8079127a7bc7a2714f0fb 100644
(file)
--- a/
poweroff.c
+++ b/
poweroff.c
@@
-28,8
+28,8
@@
extern int poweroff_main(int argc, char **argv)
{
#ifdef BB_FEATURE_LINUXRC
/* don't assume init's pid == 1 */
-
exit
(kill(*(findPidByName("init")), SIGUSR2));
+
return
(kill(*(findPidByName("init")), SIGUSR2));
#else
-
exit
(kill(1, SIGUSR2));
+
return
(kill(1, SIGUSR2));
#endif
}