summaryrefslogtreecommitdiffstats
path: root/release
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-09-30 19:55:00 +0000
committerpeter <peter@FreeBSD.org>1999-09-30 19:55:00 +0000
commit3021933a6c1ad95d61068e78bdc661fbe8b84708 (patch)
tree345e8e012e10dc86377f427a9bcf79eabdd2edbc /release
parent4a4f1cc7585921a0a996fae8e578d62e4682b951 (diff)
downloadFreeBSD-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.c2
-rw-r--r--release/sysinstall/media.c2
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) {
OpenPOWER on IntegriCloud