summaryrefslogtreecommitdiff
path: root/udevd.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2006-03-16 10:46:30 +0100
committerKay Sievers <kay.sievers@suse.de>2006-03-16 10:46:30 +0100
commit3e5e833253a0683935808c90498b6c639be955fe (patch)
tree3f5604ef7c6fe013582e376df67eae162f5ad1fc /udevd.c
parent2f567dd62ede3cf979e426738925446f1182ba52 (diff)
reset signal handler in event process
Diffstat (limited to 'udevd.c')
-rw-r--r--udevd.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/udevd.c b/udevd.c
index 98e3d54b33..9340be14cf 100644
--- 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);