From 47bf9196c66a2a3dbb1b3a511dee933620616945 Mon Sep 17 00:00:00 2001 From: "kay.sievers@vrfy.org" Date: Mon, 7 Jun 2004 02:56:47 -0700 Subject: [PATCH] fix udevd zombies The recent version of klibc switched to -mregparm=3. This broke the signal handlers parameter, cause it is called directly from the kernel with the parameter on the stack not in a register. --- udevd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'udevd.c') diff --git a/udevd.c b/udevd.c index 5756b46122..e0c5bf5c77 100644 --- a/udevd.c +++ b/udevd.c @@ -306,9 +306,10 @@ skip: return; } -static void sig_handler(int signum) +__attribute__((regparm(0))) static void sig_handler(int signum) { int rc; + switch (signum) { case SIGINT: case SIGTERM: @@ -325,7 +326,7 @@ static void sig_handler(int signum) goto do_write; break; default: - dbg("unhandled signal"); + dbg("unhandled signal %d", signum); return; } -- cgit v1.2.3-54-g00ecf