Use sigemptyset rather than sa_mask = 0.
Submitted by: "John W. DeBoskey" <jwd@unx.sas.com>
This commit is contained in:
parent
bdf7fdcb6f
commit
233036aac1
@ -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 */
|
||||
|
@ -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) {
|
||||
|
@ -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 */
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user