diff options
author | kay.sievers@vrfy.org <kay.sievers@vrfy.org> | 2004-06-07 02:56:47 -0700 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 21:35:47 -0700 |
commit | 47bf9196c66a2a3dbb1b3a511dee933620616945 (patch) | |
tree | 593a3d8cc577f61d04507746653e5c045660e67f /udev.c | |
parent | 0f36e68e8a28e02981b90a3a4712f198b58746ba (diff) |
[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.
Diffstat (limited to 'udev.c')
-rw-r--r-- | udev.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -55,7 +55,7 @@ void log_message(int level, const char *format, ...) } #endif -static void sig_handler(int signum) +__attribute__((regparm(0))) static void sig_handler(int signum) { switch (signum) { case SIGINT: @@ -63,7 +63,7 @@ static void sig_handler(int signum) udevdb_exit(); exit(20 + signum); default: - dbg("unhandled signal"); + dbg("unhandled signal %d", signum); } } @@ -128,7 +128,7 @@ static int udev_hotplug(void) goto exit; } - /* set up a default signal handler for now */ + /* set signal handlers */ act.sa_handler = sig_handler; sigemptyset (&act.sa_mask); act.sa_flags = SA_RESTART; |