aboutsummaryrefslogtreecommitdiff
path: root/sbin/hastd/hooks.c
diff options
context:
space:
mode:
authorPawel Jakub Dawidek <pjd@FreeBSD.org>2011-01-12 16:16:54 +0000
committerPawel Jakub Dawidek <pjd@FreeBSD.org>2011-01-12 16:16:54 +0000
commitac7b0b09f32fb100e4bd180e9ef2c9f4c5f1de08 (patch)
treeb813a11837083791192d8edaaf923b5e188171fe /sbin/hastd/hooks.c
parent4c8945a06b01a5c8122cdeb402af36bb46a06acc (diff)
downloadsrc-ac7b0b09f32fb100e4bd180e9ef2c9f4c5f1de08.tar.gz
src-ac7b0b09f32fb100e4bd180e9ef2c9f4c5f1de08.zip
execve(2), not fork(2) resets signal handler to the default value (if it isn't
ignored). Correct comment talking about that. Pointed out by: kib MFC after: 3 days
Notes
Notes: svn path=/head/; revision=217312
Diffstat (limited to 'sbin/hastd/hooks.c')
-rw-r--r--sbin/hastd/hooks.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/hastd/hooks.c b/sbin/hastd/hooks.c
index e54d545c1ab0..7bc9913c463a 100644
--- a/sbin/hastd/hooks.c
+++ b/sbin/hastd/hooks.c
@@ -373,9 +373,9 @@ hook_execv(const char *path, va_list ap)
PJDLOG_VERIFY(sigemptyset(&mask) == 0);
PJDLOG_VERIFY(sigprocmask(SIG_SETMASK, &mask, NULL) == 0);
/*
- * Dummy handler set for SIGCHLD in the parent should be
- * changed after fork(2) automatically to the default SIG_IGN,
- * so there is no need to do anything with it.
+ * Dummy handler set for SIGCHLD in the parent will be restored
+ * to SIG_IGN on execv(3) below, so there is no need to do
+ * anything with it.
*/
execv(path, args);
pjdlog_errno(LOG_ERR, "Unable to execute %s", path);