chiark / gitweb /
reset signal handler in event process
authorKay Sievers <kay.sievers@suse.de>
Thu, 16 Mar 2006 09:46:30 +0000 (10:46 +0100)
committerKay Sievers <kay.sievers@suse.de>
Thu, 16 Mar 2006 09:46:30 +0000 (10:46 +0100)
udevd.c

diff --git a/udevd.c b/udevd.c
index 98e3d54..9340be1 100644 (file)
--- a/udevd.c
+++ b/udevd.c
@@ -100,6 +100,13 @@ static int udev_event_process(struct uevent_msg *msg)
        act.sa_flags = 0;
        sigaction(SIGALRM, &act, NULL);
 
+       /* reset to default */
+       act.sa_handler = SIG_DFL;
+       sigaction(SIGINT, &act, NULL);
+       sigaction(SIGTERM, &act, NULL);
+       sigaction(SIGCHLD, &act, NULL);
+       sigaction(SIGHUP, &act, NULL);
+
        /* trigger timeout to prevent hanging processes */
        alarm(UDEV_ALARM_TIMEOUT);