From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Thu, 08 Jan 2004 18:21:39 +0000 Subject: [PATCH] udev - exec status fix for klibc Message-Id: <20040108182139.GA2788@vrfy.org> MIME-Version: 1 Content-Type: multipart/mixed; boundary="FL5UXtIhxfXey3p5" List-Id: To: linux-hotplug@vger.kernel.org --FL5UXtIhxfXey3p5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Here is a patch to remove the ifdef's and fix klibc instead. thanks, Kay --FL5UXtIhxfXey3p5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline; filename="02-wait-exit-klibc-fix.diff" diff -Nru a/klibc_fixups.h b/klibc_fixups.h --- a/klibc_fixups.h Thu Jan 8 19:03:26 2004 +++ b/klibc_fixups.h Thu Jan 8 19:03:26 2004 @@ -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 */ diff -Nru a/namedev.c b/namedev.c --- a/namedev.c Thu Jan 8 19:03:26 2004 +++ b/namedev.c Thu Jan 8 19:03:26 2004 @@ -380,12 +380,10 @@ retval = -1; } -#ifndef __KLIBC__ if (!WIFEXITED(status) || (WEXITSTATUS(status) != 0)) { dbg("callout program status 0x%x", status); retval = -1; } -#endif } return retval; } --FL5UXtIhxfXey3p5-- ------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel