mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-04-20 00:04:27 +02:00
Explicitly set sa_flags in sigaction.
This commit is contained in:
+2
-1
@@ -359,7 +359,8 @@ void HandleQueuedReminders(void)
|
||||
|
||||
if (ShouldFork || Daemon) {
|
||||
sa.sa_handler = SigIntHandler;
|
||||
sa.sa_flags = 0;
|
||||
sa.sa_flags = SA_RESTART;
|
||||
sigemptyset(&sa.sa_mask);
|
||||
(void) sigaction(SIGINT, &sa, NULL);
|
||||
sa.sa_handler = SigContHandler;
|
||||
(void) sigaction(SIGCONT, &sa, NULL);
|
||||
|
||||
Reference in New Issue
Block a user