projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Applied patch from Larry Doolittle to remove some strlen calls, and add one
[oweals/busybox.git]
/
reboot.c
diff --git
a/reboot.c
b/reboot.c
index 354286d4764e086672715a8efa5c93eeb9bce3d7..74d2cf6434c62856f721dc34600e2664b7899181 100644
(file)
--- a/
reboot.c
+++ b/
reboot.c
@@
-28,9
+28,9
@@
extern int reboot_main(int argc, char **argv)
{
#ifdef BB_FEATURE_LINUXRC
/* don't assume init's pid == 1 */
- return(kill(*(find
PidByName("init")), SIGINT
));
+ return(kill(*(find
_pid_by_name("init")), SIGTERM
));
#else
- return(kill(1, SIG
INT
));
+ return(kill(1, SIG
TERM
));
#endif
}