aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIhor Antonov <ihor@antonovs.family>2023-03-02 03:00:41 +0000
committerKyle Evans <kevans@FreeBSD.org>2023-03-02 03:00:41 +0000
commit84866cefdfb78488543056173aea78748b77159b (patch)
tree81144c957139e2d5c07efb312e868e35bb0514e5
parente745dc2287ac4844c1a21aaa31d0bc3dad6b1b06 (diff)
downloadsrc-84866cefdfb78488543056173aea78748b77159b.tar.gz
src-84866cefdfb78488543056173aea78748b77159b.zip
daemon: initialize mask_orig with sigemptyset()
consolidation of variable declarations and initializations in previous commit allowed me to detect that one of the signal masks is not properly initialized with sigemptyset (as man 3 sigsetops demands) Reviewed by: kevans Pull Request: https://github.com/freebsd/freebsd-src/pull/669
-rw-r--r--usr.sbin/daemon/daemon.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/daemon/daemon.c b/usr.sbin/daemon/daemon.c
index c8ccd8f892fa..9477b2a415e8 100644
--- a/usr.sbin/daemon/daemon.c
+++ b/usr.sbin/daemon/daemon.c
@@ -171,6 +171,7 @@ main(int argc, char *argv[])
sigemptyset(&mask_susp);
sigemptyset(&mask_read);
sigemptyset(&mask_term);
+ sigemptyset(&mask_orig);
while ((ch = getopt_long(argc, argv, shortopts, longopts, NULL)) != -1) {
switch (ch) {