diff options
author | Scott James Remnant <scott@ubuntu.com> | 2009-09-22 14:39:23 -0700 |
---|---|---|
committer | Scott James Remnant <scott@ubuntu.com> | 2009-09-22 14:39:23 -0700 |
commit | 49c3a01d444052169363030dfd996fc7fd6a4fad (patch) | |
tree | 0d9dc424d7d9acfe43875da98c1039095fef67f2 /libudev | |
parent | 6e1a152d1cf3c3b8724f5ed37444ce714887b441 (diff) |
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>
Diffstat (limited to 'libudev')
-rw-r--r-- | libudev/libudev-util-private.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libudev/libudev-util-private.c b/libudev/libudev-util-private.c index e0670dbae5..585dfc6a41 100644 --- a/libudev/libudev-util-private.c +++ b/libudev/libudev-util-private.c @@ -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) { |