From: Eric Andersen Date: Sat, 5 Jul 2003 08:39:47 +0000 (-0000) Subject: oops X-Git-Tag: 1_00_pre1~21 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d5a2780aa2fdee601f92df47a63a0945a7197755;p=oweals%2Fbusybox.git oops --- diff --git a/init/init.c b/init/init.c index 401cf693c..a454ac5ce 100644 --- a/init/init.c +++ b/init/init.c @@ -190,6 +190,7 @@ static const char * const environment[] = { /* Function prototypes */ static void delete_init_action(struct init_action *a); static int waitfor(const struct init_action *a); +static void halt_signal(int sig); static void loop_forever(void) @@ -723,6 +724,8 @@ static void exec_signal(int sig) for (a = init_action_list; a; a = tmp) { tmp = a->next; if (a->action & RESTART) { + struct stat sb; + shutdown_system(); /* unblock all signals, blocked in shutdown_system() */