diff options
author | pjd <pjd@FreeBSD.org> | 2011-01-12 16:16:54 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2011-01-12 16:16:54 +0000 |
commit | 18d56b43fe2f7cb6d7ff8f5299812b4084f1904e (patch) | |
tree | b813a11837083791192d8edaaf923b5e188171fe | |
parent | 3d4e8889889e5e36302454225999f7e146d3219c (diff) | |
download | FreeBSD-src-18d56b43fe2f7cb6d7ff8f5299812b4084f1904e.zip FreeBSD-src-18d56b43fe2f7cb6d7ff8f5299812b4084f1904e.tar.gz |
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
-rw-r--r-- | sbin/hastd/hooks.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/hastd/hooks.c b/sbin/hastd/hooks.c index e54d545..7bc9913 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); |