mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-23 05:51:11 +01:00
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
This commit is contained in:
parent
4c8945a06b
commit
ac7b0b09f3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=217312
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user