chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] 030 release
[elogind.git]
/
udevd.c
diff --git
a/udevd.c
b/udevd.c
index d807e4168d8b96b04ea939bdf661ff49ae3a4a22..e0c5bf5c779789f10d2faf0714dc812dacd0fa6f 100644
(file)
--- a/
udevd.c
+++ b/
udevd.c
@@
-34,9
+34,7
@@
#include <sys/un.h>
#include <fcntl.h>
#include "klibc_fixups.h"
#include <sys/un.h>
#include <fcntl.h>
#include "klibc_fixups.h"
-#ifndef __KLIBC__
#include <sys/sysinfo.h>
#include <sys/sysinfo.h>
-#endif
#include "list.h"
#include "udev.h"
#include "list.h"
#include "udev.h"
@@
-308,9
+306,10
@@
skip:
return;
}
return;
}
-static void sig_handler(int signum)
+
__attribute__((regparm(0)))
static void sig_handler(int signum)
{
int rc;
{
int rc;
+
switch (signum) {
case SIGINT:
case SIGTERM:
switch (signum) {
case SIGINT:
case SIGTERM:
@@
-327,7
+326,7
@@
static void sig_handler(int signum)
goto do_write;
break;
default:
goto do_write;
break;
default:
- dbg("unhandled signal
"
);
+ dbg("unhandled signal
%d", signum
);
return;
}
return;
}