2
0
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:
Todd C. Miller
2010-06-10 15:18:23 -04:00
parent e54cfc9bd4
commit 047fc3876d
9 changed files with 17 additions and 167 deletions

View File

@@ -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);