mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 06:15:37 +00:00
Remove sigaction emulation
Use SA_INTERRUPT in sa_flags
This commit is contained in:
@@ -478,7 +478,7 @@ send_mail(const char *fmt, ...)
|
||||
/* Ignore SIGPIPE in case mailer exits prematurely (or is missing). */
|
||||
zero_bytes(&sa, sizeof(sa));
|
||||
sigemptyset(&sa.sa_mask);
|
||||
sa.sa_flags = 0;
|
||||
sa.sa_flags = SA_INTERRUPT;
|
||||
sa.sa_handler = SIG_IGN;
|
||||
(void) sigaction(SIGPIPE, &sa, NULL);
|
||||
|
||||
|
Reference in New Issue
Block a user