diff options
author | peter <peter@FreeBSD.org> | 1999-09-30 19:55:00 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-09-30 19:55:00 +0000 |
commit | 3021933a6c1ad95d61068e78bdc661fbe8b84708 (patch) | |
tree | 345e8e012e10dc86377f427a9bcf79eabdd2edbc /release | |
parent | 4a4f1cc7585921a0a996fae8e578d62e4682b951 (diff) | |
download | FreeBSD-src-3021933a6c1ad95d61068e78bdc661fbe8b84708.zip FreeBSD-src-3021933a6c1ad95d61068e78bdc661fbe8b84708.tar.gz |
Use sigemptyset rather than sa_mask = 0.
Submitted by: "John W. DeBoskey" <jwd@unx.sas.com>
Diffstat (limited to 'release')
-rw-r--r-- | release/sysinstall/dist.c | 2 | ||||
-rw-r--r-- | release/sysinstall/media.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/release/sysinstall/dist.c b/release/sysinstall/dist.c index 3596835..9a2e489 100644 --- a/release/sysinstall/dist.c +++ b/release/sysinstall/dist.c @@ -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 */ diff --git a/release/sysinstall/media.c b/release/sysinstall/media.c index 380b704..55055ed 100644 --- a/release/sysinstall/media.c +++ b/release/sysinstall/media.c @@ -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) { |