]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udev-event: drop redundant code
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 22 Oct 2018 09:25:18 +0000 (18:25 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 23 Oct 2018 19:46:48 +0000 (04:46 +0900)
We have set FORK_RESET_SIGNALS in safe_fork(). So, calling
reset_signal_mask() after safe_fork() is redundant.

src/udev/udev-event.c

index 1c4cb7fb7851cb0d854969495ffc07c151b84852..ee56c283482978ef0d6ea75507aef9780c4a9189 100644 (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 */