[PATCH] udev - exec status fix for klibc

Here is a patch to remove the ifdef's and fix klibc instead.
This commit is contained in:
kay.sievers@vrfy.org 2004-01-10 01:05:38 -08:00 committed by Greg KH
parent d6e86b3752
commit 2794d24917
2 changed files with 5 additions and 2 deletions

View File

@ -4,6 +4,11 @@
#define KLIBC_FIXUPS_H
#define WTERMSIG(status) ((status) & 0x7f)
#define WEXITSTATUS(status) (((status) & 0xff00) >> 8)
#define WIFEXITED(status) (WTERMSIG(status) == 0)
struct group {
char *gr_name; /* group name */
char *gr_passwd; /* group password */

View File

@ -401,12 +401,10 @@ static int exec_callout(struct config_device *dev, char *value, int len)
retval = -1;
}
#ifndef __KLIBC__
if (!WIFEXITED(status) || (WEXITSTATUS(status) != 0)) {
dbg("callout program status 0x%x", status);
retval = -1;
}
#endif
}
return retval;
}