projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update the changelog, prepatory to the 0.51 release. Please review
[oweals/busybox.git]
/
halt.c
diff --git
a/halt.c
b/halt.c
index d61c38760c0b970e7fb6d39e8e3deca9b295ca04..e875d04f0cb8cdee48bfc9d434e97587738ccfce 100644
(file)
--- a/
halt.c
+++ b/
halt.c
@@
-21,11
+21,15
@@
*
*/
*
*/
-#include "
internal
.h"
+#include "
busybox
.h"
#include <signal.h>
extern int halt_main(int argc, char **argv)
{
#include <signal.h>
extern int halt_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(), SIGUSR1));
+ return(kill(*(find_pid_by_name("init")), SIGUSR1));
+#else
+ return(kill(1, SIGUSR1));
+#endif
}
}