From 5a73b25fd6673134328443af04afe7bde0060d72 Mon Sep 17 00:00:00 2001 From: "kay.sievers@vrfy.org" Date: Fri, 5 Nov 2004 13:16:32 +0100 Subject: [PATCH] Don't use any syslog() in signal handler, cause it may deadlock. --- udev.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'udev.c') diff --git a/udev.c b/udev.c index cac60fd9..78090605 100644 --- a/udev.c +++ b/udev.c @@ -65,14 +65,10 @@ static void asmlinkage sig_handler(int signum) switch (signum) { case SIGALRM: gotalarm = 1; - info("error: timeout reached, event probably not handled correctly"); break; case SIGINT: case SIGTERM: - udevdb_exit(); exit(20 + signum); - default: - dbg("unhandled signal %d", signum); } } @@ -148,6 +144,7 @@ int main(int argc, char *argv[], char *envp[]) /* set signal handlers */ act.sa_handler = (void (*) (int))sig_handler; sigemptyset (&act.sa_mask); + act.sa_flags = 0; /* alarm must not restart syscalls*/ sigaction(SIGALRM, &act, NULL); sigaction(SIGINT, &act, NULL); -- cgit 1.2.3-korg