mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-10-15 10:05:28 +00: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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user