search for: ignoresig

Displaying 2 results from an estimated 2 matches for "ignoresig".

Did you mean: ignores
2020 Mar 28
0
[klibc:update-dash] dash: eval: Add vfork support
...gno) { case SIGINT: if (iflag || minusc || sflag == 0) @@ -255,7 +258,8 @@ setsignal(int signo) default: act.sa_handler = SIG_DFL; } - *t = action; + if (!lvforked) + *t = action; act.sa_flags = 0; sigfillset(&act.sa_mask); sigaction(signo, &act, 0); @@ -271,7 +275,8 @@ ignoresig(int signo) if (sigmode[signo - 1] != S_IGN && sigmode[signo - 1] != S_HARD_IGN) { signal(signo, SIG_IGN); } - sigmode[signo - 1] = S_HARD_IGN; + if (!vforked) + sigmode[signo - 1] = S_HARD_IGN; } @@ -283,6 +288,9 @@ ignoresig(int signo) void onsig(int signo) { + if (vforked)...
2004 Oct 18
0
Error building ash: trap.c:398: error: conflicting types for 'onsig'
...: Leaving directory `/home/daniel/kernel/klibc-0.186/ash' make: *** [all] Error 2 This fixes it for me: --- ash/trap.h.old 2004-10-19 00:04:21.021269720 +0000 +++ ash/trap.h 2004-10-19 00:04:37.218807320 +0000 @@ -40,7 +40,7 @@ void clear_traps(int); long setsignal(int, int); void ignoresig(int, int); -void onsig(int); +__cdecl void onsig(int); void dotrap(void); void setinteractive(int); void exitshell(int) __attribute__((__noreturn__)); Daniel Thaler