diff options
author | Kay Sievers <kay.sievers@suse.de> | 2006-03-16 10:46:30 +0100 |
---|---|---|
committer | Kay Sievers <kay.sievers@suse.de> | 2006-03-16 10:46:30 +0100 |
commit | 3e5e833253a0683935808c90498b6c639be955fe (patch) | |
tree | 3f5604ef7c6fe013582e376df67eae162f5ad1fc | |
parent | 2f567dd62ede3cf979e426738925446f1182ba52 (diff) |
reset signal handler in event process
-rw-r--r-- | udevd.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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); |