Skip to content

Commit 230f0be

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 230f0be

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

src/daemon.c

Lines changed: 0 additions & 5 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;
@@ -133,7 +129,6 @@ void go_daemon(void (*fan_control)())
133129
signal(SIGHUP, signal_handler);
134130
signal(SIGTERM, signal_handler);
135131
signal(SIGINT, signal_handler);
136-
signal(SIGSTOP, signal_handler);
137132

138133
syslog(LOG_INFO, "%s starting up", PROGRAM_NAME);
139134

0 commit comments

Comments
 (0)