From 9b778887831faf2c69f95816e95e88858bae5f1d Mon Sep 17 00:00:00 2001 From: Wildan M Date: Mon, 9 Feb 2026 23:33:15 +0700 Subject: [PATCH] Workaround bash not sending signal --- recipes/shells/bash/redox.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/recipes/shells/bash/redox.patch b/recipes/shells/bash/redox.patch index bc238aea..125cb1f2 100644 --- a/recipes/shells/bash/redox.patch +++ b/recipes/shells/bash/redox.patch @@ -111,6 +111,22 @@ diff -ruwN source/include/posixwait.h source-new/include/posixwait.h # if !defined (WSTOPSIG) # define WSTOPSIG(s) ((s) >> 8) +diff --color -ruwN source/jobs.c source-new/jobs.c +--- source/jobs.c 2022-12-14 00:09:02.000000000 +0700 ++++ source-new/jobs.c 2026-02-09 23:29:28.811403291 +0700 +@@ -4417,9 +4417,11 @@ + { + shell_pgrp = getpid (); + setpgid (0, shell_pgrp); ++ } ++ ++ // shell pgrep is not set automatically on Redox + if (shell_tty != -1) + tcsetpgrp (shell_tty, shell_pgrp); +- } + + tty_sigs = 0; + while ((terminal_pgrp = tcgetpgrp (shell_tty)) != -1) diff -ruwN source/lib/readline/input.c source-new/lib/readline/input.c --- source/lib/readline/input.c 2022-04-09 02:43:24.000000000 +0700 +++ source-new/lib/readline/input.c 2025-09-01 04:36:35.276926707 +0700