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

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