Blame SOURCES/autofs-5.0.7-add-debug-alert-for-waitpid-in-check_nfs_mount_version.patch

304803
autofs-5.0.7 - add debug alert for waitpid in check_nfs_mount_version()
304803
304803
From: Ian Kent <raven@themaw.net>
304803
304803
We don't really case if there's no process to wait for but add a debug
304803
log alert for information.
304803
---
304803
 lib/mounts.c |    3 ++-
304803
 1 file changed, 2 insertions(+), 1 deletion(-)
304803
304803
diff --git a/lib/mounts.c b/lib/mounts.c
304803
index 7b959b8..a6f560e 100644
304803
--- a/lib/mounts.c
304803
+++ b/lib/mounts.c
304803
@@ -287,7 +287,8 @@ int check_nfs_mount_version(struct nfs_mount_vers *vers,
304803
 			ret = 0;
304803
 	}
304803
 
304803
-	if (waitpid(f, &status, 0) != f) ;
304803
+	if (waitpid(f, &status, 0) != f)
304803
+		debug(LOGOPT_NONE, "no process found to wait for");
304803
 
304803
 	pthread_sigmask(SIG_SETMASK, &oldsig, NULL);
304803
 	pthread_setcancelstate(cancel_state, NULL);