linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] udev - exec status fix for klibc
@ 2004-01-08 18:21 Kay Sievers
  2004-01-10  1:10 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Kay Sievers @ 2004-01-08 18:21 UTC (permalink / raw)
  To: linux-hotplug

[-- Attachment #1: Type: text/plain, Size: 74 bytes --]

Here is a patch to remove the ifdef's and fix klibc instead.

thanks,
Kay

[-- Attachment #2: 02-wait-exit-klibc-fix.diff --]
[-- Type: text/plain, Size: 769 bytes --]

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;
 }

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] udev - exec status fix for klibc
  2004-01-08 18:21 [PATCH] udev - exec status fix for klibc Kay Sievers
@ 2004-01-10  1:10 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2004-01-10  1:10 UTC (permalink / raw)
  To: linux-hotplug

On Thu, Jan 08, 2004 at 07:21:39PM +0100, Kay Sievers wrote:
> Here is a patch to remove the ifdef's and fix klibc instead.

Applied, thanks.

greg k-h


-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-01-10  1:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-08 18:21 [PATCH] udev - exec status fix for klibc Kay Sievers
2004-01-10  1:10 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).