aboutsummaryrefslogtreecommitdiff
path: root/init/init.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2009-01-31 14:22:24 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2009-01-31 14:22:24 +0000
commite35af567900ec2a7abb17e09cc5b5641f7faafe7 (patch)
treea1a065a9d053e10303720c90eb68b148701ebd8a /init/init.c
parentfc2a4fc2ba8022ce2ea6dc0f66ba4ef0be1fa805 (diff)
downloadbusybox-w32-e35af567900ec2a7abb17e09cc5b5641f7faafe7.tar.gz
busybox-w32-e35af567900ec2a7abb17e09cc5b5641f7faafe7.tar.bz2
busybox-w32-e35af567900ec2a7abb17e09cc5b5641f7faafe7.zip
modutils-24: use xasprintf and xzalloc where appropriate,
remove unreachanble code build system: correct some dependencies in config system init: convert one #if into if() - for Rob. function old new delta obj_string_patch 136 129 -7 bb_init_module_24 4759 4615 -144 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-151) Total: -151 bytes
Diffstat (limited to 'init/init.c')
-rw-r--r--init/init.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/init/init.c b/init/init.c
index 59d070950..ed01e71c0 100644
--- a/init/init.c
+++ b/init/init.c
@@ -780,16 +780,16 @@ static void reload_inittab(void)
780 for (a = init_action_list; a; a = a->next) 780 for (a = init_action_list; a; a = a->next)
781 if (a->pid != 0) 781 if (a->pid != 0)
782 kill(a->pid, SIGTERM); 782 kill(a->pid, SIGTERM);
783#if CONFIG_FEATURE_KILL_DELAY 783 if (CONFIG_FEATURE_KILL_DELAY) {
784 /* NB: parent will wait in NOMMU case */ 784 /* NB: parent will wait in NOMMU case */
785 if ((BB_MMU ? fork() : vfork()) == 0) { /* child */ 785 if ((BB_MMU ? fork() : vfork()) == 0) { /* child */
786 sleep(CONFIG_FEATURE_KILL_DELAY); 786 sleep(CONFIG_FEATURE_KILL_DELAY);
787 for (a = init_action_list; a; a = a->next) 787 for (a = init_action_list; a; a = a->next)
788 if (a->pid != 0) 788 if (a->pid != 0)
789 kill(a->pid, SIGKILL); 789 kill(a->pid, SIGKILL);
790 _exit(EXIT_SUCCESS); 790 _exit(EXIT_SUCCESS);
791 }
791 } 792 }
792#endif
793 } 793 }
794 794
795 /* Remove old and unused entries */ 795 /* Remove old and unused entries */