[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:
parent
d6e86b3752
commit
2794d24917
|
@ -4,6 +4,11 @@
|
||||||
#define KLIBC_FIXUPS_H
|
#define KLIBC_FIXUPS_H
|
||||||
|
|
||||||
|
|
||||||
|
#define WTERMSIG(status) ((status) & 0x7f)
|
||||||
|
#define WEXITSTATUS(status) (((status) & 0xff00) >> 8)
|
||||||
|
#define WIFEXITED(status) (WTERMSIG(status) == 0)
|
||||||
|
|
||||||
|
|
||||||
struct group {
|
struct group {
|
||||||
char *gr_name; /* group name */
|
char *gr_name; /* group name */
|
||||||
char *gr_passwd; /* group password */
|
char *gr_passwd; /* group password */
|
||||||
|
|
|
@ -401,12 +401,10 @@ static int exec_callout(struct config_device *dev, char *value, int len)
|
||||||
retval = -1;
|
retval = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef __KLIBC__
|
|
||||||
if (!WIFEXITED(status) || (WEXITSTATUS(status) != 0)) {
|
if (!WIFEXITED(status) || (WEXITSTATUS(status) != 0)) {
|
||||||
dbg("callout program status 0x%x", status);
|
dbg("callout program status 0x%x", status);
|
||||||
retval = -1;
|
retval = -1;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue