diff options
author | pjd <pjd@FreeBSD.org> | 2010-09-22 19:08:11 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2010-09-22 19:08:11 +0000 |
commit | 67279d16ee319cb5904e06282acb094216407755 (patch) | |
tree | bacc321cf8b67b3b710a5e41960ab926cee818ab /sbin/hastd/hastd.h | |
parent | 2eee4ca70d37cd47c54a9641d8bd574f33579200 (diff) | |
download | FreeBSD-src-67279d16ee319cb5904e06282acb094216407755.zip FreeBSD-src-67279d16ee319cb5904e06282acb094216407755.tar.gz |
Switch to sigprocmask(2) API also in the main process and secondary process.
This way the primary process inherits signal mask from the main process,
which fixes a race where signal is delivered to the primary process before
configuring signal mask.
Reported by: Mikolaj Golub <to.my.trociny@gmail.com>
MFC after: 3 days
Diffstat (limited to 'sbin/hastd/hastd.h')
-rw-r--r-- | sbin/hastd/hastd.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/hastd/hastd.h b/sbin/hastd/hastd.h index a32e512..0186e81 100644 --- a/sbin/hastd/hastd.h +++ b/sbin/hastd/hastd.h @@ -40,7 +40,7 @@ #include "hast.h" extern const char *cfgpath; -extern bool sigchld_received, sigexit_received, sighup_received; +extern bool sigexit_received; extern struct pidfh *pfh; void hastd_primary(struct hast_resource *res); |