udev-event: drop redundant code

We have set FORK_RESET_SIGNALS in safe_fork(). So, calling
reset_signal_mask() after safe_fork() is redundant.
This commit is contained in:
Yu Watanabe
2018-10-24 04:46:48 +09:00
parent 3ad4d482c7
commit 63ec4dfaa1
-3
View File
@@ -452,9 +452,6 @@ static int spawn_exec(struct udev_event *event,
/* terminate child in case parent goes away */
prctl(PR_SET_PDEATHSIG, SIGTERM);
/* restore sigmask before exec */
(void) reset_signal_mask();
execve(argv[0], argv, envp);
/* exec failed */