chiark / gitweb /
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)
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>

No differences found