Catch SIGCONT to force it to interrupt the select() system call.

This commit is contained in:
Dianne Skoll
2023-12-09 19:12:27 -05:00
parent 6e53fd6924
commit b2d32b514a

View File

@@ -135,6 +135,12 @@ maybe_close(int fd)
(void) close(new_fd);
}
void
SigContHandler(int d)
{
UNUSED(d);
}
/***************************************************************/
/* */
/* HandleQueuedReminders */
@@ -195,6 +201,8 @@ void HandleQueuedReminders(void)
sa.sa_handler = SigIntHandler;
sa.sa_flags = 0;
(void) sigaction(SIGINT, &sa, NULL);
sa.sa_handler = SigContHandler;
(void) sigaction(SIGCONT, &sa, NULL);
}
/* Sit in a loop, issuing reminders when necessary */