mirror of
https://github.com/systemd/systemd.git
synced 2025-03-23 10:50:16 +03:00
util_run_program: *really* restore signal mask before executing event RUN commands
The previous patch was almost, but not quite, correct. Rather than restoring the signal mask it actually tried to make an even more restrictive signal mask (had SIGALRM been blocked when udevd started, anyway). Fix it harder. Signed-off-by: Scott James Remnant <scott@ubuntu.com>
This commit is contained in:
parent
6e1a152d1c
commit
49c3a01d44
@ -337,7 +337,7 @@ int util_run_program(struct udev *udev, const char *command, char **envp,
|
||||
}
|
||||
|
||||
if (sigmask)
|
||||
sigprocmask(SIG_BLOCK, sigmask, NULL);
|
||||
sigprocmask(SIG_SETMASK, sigmask, NULL);
|
||||
|
||||
execve(argv[0], argv, envp);
|
||||
if (errno == ENOENT || errno == ENOTDIR) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user