summaryrefslogtreecommitdiff
path: root/package/toybox/patches/patch-toys_pending_init_c
diff options
context:
space:
mode:
Diffstat (limited to 'package/toybox/patches/patch-toys_pending_init_c')
-rw-r--r--package/toybox/patches/patch-toys_pending_init_c12
1 files changed, 12 insertions, 0 deletions
diff --git a/package/toybox/patches/patch-toys_pending_init_c b/package/toybox/patches/patch-toys_pending_init_c
new file mode 100644
index 000000000..3a69442ed
--- /dev/null
+++ b/package/toybox/patches/patch-toys_pending_init_c
@@ -0,0 +1,12 @@
+--- toybox-0.8.12.orig/toys/pending/init.c 2025-01-18 21:20:33.000000000 +0100
++++ toybox-0.8.12/toys/pending/init.c 2025-04-07 15:31:14.276281021 +0200
+@@ -246,8 +246,7 @@ static pid_t final_run(struct action_lis
+
+ sigfillset(&signal_set);
+ sigprocmask(SIG_BLOCK, &signal_set, NULL);
+- if (x->action & ASKFIRST) pid = fork();
+- else pid = vfork();
++ pid = vfork();
+
+ if (pid > 0) {
+ //parent process or error