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);