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

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