aboutsummaryrefslogtreecommitdiff
path: root/init/init.c
diff options
context:
space:
mode:
authoraldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-05-30 18:17:21 +0000
committeraldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-05-30 18:17:21 +0000
commit5a5dd258967e416ff396c9b312c6e82cfd5edc99 (patch)
tree6e593a9d0ccf65ea57e7143d444258820a49c8ed /init/init.c
parent2620dbabfc0dabb1f7bbb297c882df9b79a9b64f (diff)
downloadbusybox-w32-5a5dd258967e416ff396c9b312c6e82cfd5edc99.tar.gz
busybox-w32-5a5dd258967e416ff396c9b312c6e82cfd5edc99.tar.bz2
busybox-w32-5a5dd258967e416ff396c9b312c6e82cfd5edc99.zip
- consolidate "Sending SIG%s to all processes"; untested..
text data bss dec hex filename 5379 32 8 5419 152b init/init.o.oorig 5358 32 8 5398 1516 init/init.o git-svn-id: svn://busybox.net/trunk/busybox@15239 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'init/init.c')
-rw-r--r--init/init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/init/init.c b/init/init.c
index b17ebc2ce..d072a2209 100644
--- a/init/init.c
+++ b/init/init.c
@@ -683,12 +683,12 @@ static void shutdown_system(void)
683 sync(); 683 sync();
684 684
685 /* Send signals to every process _except_ pid 1 */ 685 /* Send signals to every process _except_ pid 1 */
686 message(CONSOLE | LOG, "Sending SIGTERM to all processes."); 686 message(CONSOLE | LOG, init_sending_format, "TERM");
687 kill(-1, SIGTERM); 687 kill(-1, SIGTERM);
688 sleep(1); 688 sleep(1);
689 sync(); 689 sync();
690 690
691 message(CONSOLE | LOG, "Sending SIGKILL to all processes."); 691 message(CONSOLE | LOG, init_sending_format, "KILL");
692 kill(-1, SIGKILL); 692 kill(-1, SIGKILL);
693 sleep(1); 693 sleep(1);
694 694