mirror of
https://repo.or.cz/socat.git
synced 2024-12-22 23:42:34 +00:00
SIGSEGV and other signals could lead to a 100% CPU loop
This commit is contained in:
parent
d34493c18d
commit
6b596b8852
2 changed files with 5 additions and 1 deletions
3
CHANGES
3
CHANGES
|
@ -1,4 +1,7 @@
|
|||
|
||||
corrections:
|
||||
SIGSEGV and other signals could lead to a 100% CPU loop
|
||||
|
||||
testing:
|
||||
socks4echo.sh and socks4a-echo.sh hung with new bash with read -n
|
||||
|
||||
|
|
3
socat.c
3
socat.c
|
@ -1422,12 +1422,13 @@ void socat_signal(int signum) {
|
|||
diag_in_handler = 1;
|
||||
Notice1("socat_signal(): handling signal %d", signum);
|
||||
switch (signum) {
|
||||
case SIGQUIT:
|
||||
case SIGILL:
|
||||
case SIGABRT:
|
||||
case SIGBUS:
|
||||
case SIGFPE:
|
||||
case SIGSEGV:
|
||||
diag_immediate_exit = 1;
|
||||
case SIGQUIT:
|
||||
case SIGPIPE:
|
||||
diag_set_int('x', 128+signum); /* in case Error exits for us */
|
||||
Error1("exiting on signal %d", signum);
|
||||
|
|
Loading…
Reference in a new issue