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

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