patch-toys_pending_init_c 425 B

123456789101112
  1. --- toybox-0.8.12.orig/toys/pending/init.c 2025-01-18 21:20:33.000000000 +0100
  2. +++ toybox-0.8.12/toys/pending/init.c 2025-04-07 15:31:14.276281021 +0200
  3. @@ -246,8 +246,7 @@ static pid_t final_run(struct action_lis
  4. sigfillset(&signal_set);
  5. sigprocmask(SIG_BLOCK, &signal_set, NULL);
  6. - if (x->action & ASKFIRST) pid = fork();
  7. - else pid = vfork();
  8. + pid = vfork();
  9. if (pid > 0) {
  10. //parent process or error