mirror of
https://github.com/systemd/systemd.git
synced 2025-02-10 17:57:40 +03:00
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:
parent
3ad4d482c7
commit
63ec4dfaa1
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user