unblock SIGIGN/SIGTSTP right before exec'ing secondary init

This commit is contained in:
Sergey Bolshakov 2008-05-22 18:19:34 +04:00
parent 95fbd633ea
commit f3120f01dc

3
init.c
View File

@ -549,6 +549,9 @@ int main(int argc, char **argv)
/* Spawn init */
printf(" done.\n");
/* unblock signals */
sigprocmask(SIG_UNBLOCK, &sig, NULL);
argv[0] = STAGE2_BINNAME;
execve(argv[0], argv, myenv);
fatal("stage2"); /* Failed to spawn init */