Module Name:    othersrc
Committed By:   jmcneill
Date:           Mon Aug 29 10:59:58 UTC 2011

Modified Files:
        othersrc/external/bsd/udevfsd: udevfsd.c

Log Message:
don't use WNOHANG flag with waitpid


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 othersrc/external/bsd/udevfsd/udevfsd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: othersrc/external/bsd/udevfsd/udevfsd.c
diff -u othersrc/external/bsd/udevfsd/udevfsd.c:1.2 othersrc/external/bsd/udevfsd/udevfsd.c:1.3
--- othersrc/external/bsd/udevfsd/udevfsd.c:1.2	Wed Aug  3 00:06:00 2011
+++ othersrc/external/bsd/udevfsd/udevfsd.c	Mon Aug 29 10:59:57 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: udevfsd.c,v 1.2 2011/08/03 00:06:00 jmcneill Exp $ */
+/* $NetBSD: udevfsd.c,v 1.3 2011/08/29 10:59:57 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2011 Jared D. McNeill <[email protected]>
@@ -35,7 +35,7 @@
 #include <sys/cdefs.h>
 __COPYRIGHT("@(#) Copyright (c) 2011\
 Jared D. McNeill <[email protected]>. All rights reserved.");
-__RCSID("$NetBSD: udevfsd.c,v 1.2 2011/08/03 00:06:00 jmcneill Exp $");
+__RCSID("$NetBSD: udevfsd.c,v 1.3 2011/08/29 10:59:57 jmcneill Exp $");
 
 #include <sys/types.h>
 #include <sys/ioctl.h>
@@ -91,7 +91,7 @@
 		udevfsd_exec(udevfsd_script, event, device);
 		/* NOTREACHED */
 	default:
-		if (waitpid(pid, &status, WNOHANG) == -1) {
+		if (waitpid(pid, &status, 0) == -1) {
 			syslog(LOG_ERR, "waitpid(%d) failed: %m", pid);
 			break;
 		}

Reply via email to