]> err.no Git - systemd/commit
util_run_program: restore signal mask before executing event RUN commands
authorJeremy Kerr <jk@ozlabs.org>
Sat, 5 Sep 2009 07:48:23 +0000 (17:48 +1000)
committerKay Sievers <kay.sievers@vrfy.org>
Mon, 7 Sep 2009 10:13:50 +0000 (12:13 +0200)
commitd412a685736e3b3350b555f4d7d8ebfc80aa54c9
tree6e49304c9c86a1db4711f1df8fcc4d6d4ca0344a
parent9e6273c713c5a4b4317decca33d2fba830562ff2
util_run_program: restore signal mask before executing event RUN commands

External programs triggered by events (via RUN=) will inherit udev's
signal mask, which is set to block all but SIGALRM. For most utilities,
this is OK, but if we start daemons from RUN=, we run into trouble
(especially as SIGCHLD is blocked).

This change saves the original sigmask when udev starts, and restores it
just before we exec() the external command.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
libudev/libudev-private.h
libudev/libudev-util-private.c
udev/test-udev.c
udev/udev-event.c
udev/udev-rules.c
udev/udev.h
udev/udevd.c