chiark / gitweb /
[PATCH] Add 'asmlinkage' to udev-030
[elogind.git] / udevd.c
diff --git a/udevd.c b/udevd.c
index d807e4168d8b96b04ea939bdf661ff49ae3a4a22..79de11248ec5e8db484ce31318916d446af6353a 100644 (file)
--- a/udevd.c
+++ b/udevd.c
@@ -34,9 +34,7 @@
 #include <sys/un.h>
 #include <fcntl.h>
 #include "klibc_fixups.h"
-#ifndef __KLIBC__
 #include <sys/sysinfo.h>
-#endif
 
 #include "list.h"
 #include "udev.h"
@@ -308,9 +306,10 @@ skip:
        return;
 }
 
-static void sig_handler(int signum)
+asmlinkage static void sig_handler(int signum)
 {
        int rc;
+
        switch (signum) {
                case SIGINT:
                case SIGTERM:
@@ -327,7 +326,7 @@ static void sig_handler(int signum)
                        goto do_write;
                        break;
                default:
-                       dbg("unhandled signal");
+                       dbg("unhandled signal %d", signum);
                        return;
        }