Skip to content

Commit cfb836a

Browse files
committed
Do not attempt to catch uncatchable SIGSTOP
Eliminates a Valgrind warning: ==19239== Warning: ignored attempt to set SIGSTOP handler in sigaction(); ==19239== the SIGSTOP signal is uncatchable
1 parent 5f2da79 commit cfb836a

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

src/daemon.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,6 @@ void signal_handler(int signal)
116116
syslog(LOG_WARNING, "Received SIGINT signal.");
117117
cleanup_and_exit(EXIT_SUCCESS);
118118

119-
case SIGSTOP:
120-
syslog(LOG_WARNING, "Received SIGSTOP signal.");
121-
cleanup_and_exit(EXIT_SUCCESS);
122-
123119
default:
124120
syslog(LOG_WARNING, "Unhandled signal (%d) %s", signal, strsignal(signal));
125121
break;

0 commit comments

Comments
 (0)