From 3e5e833253a0683935808c90498b6c639be955fe Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Thu, 16 Mar 2006 10:46:30 +0100 Subject: reset signal handler in event process --- udevd.c | 7 +++++++ 1 file changed, 7 insertions(+) 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); -- cgit v1.2.3-54-g00ecf