summaryrefslogtreecommitdiff
path: root/udevd.c
diff options
context:
space:
mode:
Diffstat (limited to 'udevd.c')
-rw-r--r--udevd.c5
1 files changed, 3 insertions, 2 deletions
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;
}