Wire up SIGALRM handler
Set close on exec flag for child side of the socketpair Fix signal handling when not doing I/O logging
This commit is contained in:
@@ -689,8 +689,6 @@ exec_setup(struct command_details *details)
|
||||
}
|
||||
if (ISSET(details->flags, CD_SET_UMASK))
|
||||
(void) umask(details->umask);
|
||||
if (ISSET(details->flags, CD_SET_TIMEOUT))
|
||||
alarm(details->timeout);
|
||||
if (details->chroot) {
|
||||
if (chroot(details->chroot) != 0 || chdir("/") != 0) {
|
||||
warning("unable to change root to %s", details->chroot);
|
||||
|
Reference in New Issue
Block a user