diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2015-11-14 13:11:33 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2015-11-14 13:11:33 +0000 |
commit | 7726d2fb1214174ce69f27fe5796af3ecff2af7a (patch) | |
tree | 8af7399a3d1de078cf6f68b91ea75850f6e886cd /usr.sbin | |
parent | e735825a9b4a01e68df37f52f9cf0aa848276fab (diff) |
Cleanup from unifdef: set sact.sa_flags to SA_RESTART instead of
clearing it and then ORin in SA_RESTART.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/cron/cron.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/cron/cron.c b/usr.sbin/cron/cron.c index a93d38e3b58..31cb72c8233 100644 --- a/usr.sbin/cron/cron.c +++ b/usr.sbin/cron/cron.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cron.c,v 1.71 2015/11/14 13:09:14 millert Exp $ */ +/* $OpenBSD: cron.c,v 1.72 2015/11/14 13:11:32 millert Exp $ */ /* Copyright 1988,1990,1993,1994 by Paul Vixie * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC") @@ -89,8 +89,7 @@ main(int argc, char *argv[]) bzero((char *)&sact, sizeof sact); sigemptyset(&sact.sa_mask); - sact.sa_flags = 0; - sact.sa_flags |= SA_RESTART; + sact.sa_flags = SA_RESTART; sact.sa_handler = sigchld_handler; (void) sigaction(SIGCHLD, &sact, NULL); sact.sa_handler = SIG_IGN; |