]> err.no Git - systemd/commitdiff
util_run_program: *really* restore signal mask before executing event RUN commands
authorScott James Remnant <scott@ubuntu.com>
Tue, 22 Sep 2009 21:39:23 +0000 (14:39 -0700)
committerScott James Remnant <scott@ubuntu.com>
Tue, 22 Sep 2009 21:39:23 +0000 (14:39 -0700)
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>
libudev/libudev-util-private.c

index e0670dbae5dcacb525e89db5e8c9eca5370f612d..585dfc6a41004f08f5fe1dfd6b4a37760d702af1 100644 (file)
@@ -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) {