Use sigemptyset rather than sa_mask = 0.

Submitted by:	"John W. DeBoskey" <jwd@unx.sas.com>
This commit is contained in:
Peter Wemm 1999-09-30 19:55:00 +00:00
parent bdf7fdcb6f
commit 233036aac1
4 changed files with 4 additions and 4 deletions

View File

@ -534,7 +534,7 @@ distExtract(char *parent, Distribution *me)
/* Make ^C fake a sudden timeout */
new.sa_handler = handle_intr;
new.sa_flags = 0;
new.sa_mask = 0;
(void)sigemptyset(&new.sa_mask);
sigaction(SIGINT, &new, &old);
/* Loop through to see if we're in our parent's plans */

View File

@ -677,7 +677,7 @@ mediaExtractDist(char *dir, char *dist, FILE *fp)
/* Make ^C abort the current transfer rather than the whole show */
new.sa_handler = handle_intr;
new.sa_flags = 0;
new.sa_mask = 0;
(void)sigemptyset(&new.sa_mask);
sigaction(SIGINT, &new, &old);
while ((i = fread(buf, 1, BUFSIZ, fp)) > 0) {

View File

@ -534,7 +534,7 @@ distExtract(char *parent, Distribution *me)
/* Make ^C fake a sudden timeout */
new.sa_handler = handle_intr;
new.sa_flags = 0;
new.sa_mask = 0;
(void)sigemptyset(&new.sa_mask);
sigaction(SIGINT, &new, &old);
/* Loop through to see if we're in our parent's plans */

View File

@ -677,7 +677,7 @@ mediaExtractDist(char *dir, char *dist, FILE *fp)
/* Make ^C abort the current transfer rather than the whole show */
new.sa_handler = handle_intr;
new.sa_flags = 0;
new.sa_mask = 0;
(void)sigemptyset(&new.sa_mask);
sigaction(SIGINT, &new, &old);
while ((i = fread(buf, 1, BUFSIZ, fp)) > 0) {