diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-06-03 16:17:27 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-06-03 16:17:27 +0000 |
commit | e593fefba7a40df5e69e4a2f98a4a6641926e149 (patch) | |
tree | 697f2b06ea371a3dd48a6ee70fe7ca24f1d1d60e /sbin | |
parent | 639663bcd21d22a59ee20b0a31fa101a5f303c5a (diff) |
use sigsetops
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/ipsec/photurisd/config.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/ipsec/photurisd/config.c b/sbin/ipsec/photurisd/config.c index b6ac16c2300..1f02f8e18ac 100644 --- a/sbin/ipsec/photurisd/config.c +++ b/sbin/ipsec/photurisd/config.c @@ -33,7 +33,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: config.c,v 1.8 1998/05/19 16:31:11 provos Exp $"; +static char rcsid[] = "$Id: config.c,v 1.9 1998/06/03 16:17:26 deraadt Exp $"; #endif #define _CONFIG_C_ @@ -783,7 +783,8 @@ init_signals(void) struct sigaction sa, osa; bzero(&sa, sizeof(sa)); - sa.sa_mask = sigmask(SIGHUP); + sigemptyset(&sa.sa_mask); + sigaddset(&sa.sa_mask, SIGHUP); sa.sa_handler = reconfig; sigaction(SIGHUP, &sa, &osa); |