Closed terefang closed 3 years ago
i have used the following patch for remediation
--- clish/shell/shell_execute.c.old 2021-05-21 18:39:57.000000000 +0200
+++ clish/shell/shell_execute.c 2021-09-19 12:11:35.173528539 +0200
@@ -20,7 +20,7 @@
#include <fcntl.h>
/* Empty signal handler to ignore signal but don't use SIG_IGN. */
-static void sigignore(int signo)
+static void sig_ignore_handler(int signo)
{
signo = signo; /* Happy compiler */
return;
@@ -361,7 +361,7 @@
*/
sa.sa_flags = 0;
sigemptyset(&sa.sa_mask);
- sa.sa_handler = sigignore; /* Empty signal handler */
+ sa.sa_handler = sig_ignore_handler; /* Empty signal handler */
sigaction(SIGINT, &sa, &old_sigint);
sigaction(SIGQUIT, &sa, &old_sigquit);
sigaction(SIGHUP, &sa, &old_sighup);
Thanks for the patch. Applied. See branch 2.2
sorry i dont see any changes on github ... is it out of sync ?
Yes. The real website and repository are: http://klish.libcode.org https://src.libcode.org/pkun/klish/src/2.2 (For stable branch) https://src.libcode.org/klish (For new unfinished version)
You can find these links within README. For your changes see branch 2.2
thx
version 2.2.3
configure command
make command and error-output
seams like musl libc sigignore declaration is clashing with your internal handler name.
could you rename the handler function in file
clish/shell/shell_execute.c
on lines 23 and 364 ?