Blame SOURCES/audit-2.8.4-fix-hang.patch

2a9306
diff -urp audit-2.8.4.orig/src/auditd.c audit-2.8.4/src/auditd.c
2a9306
--- audit-2.8.4.orig/src/auditd.c	2018-05-21 13:38:08.000000000 -0400
2a9306
+++ audit-2.8.4/src/auditd.c	2018-06-27 08:12:44.027716750 -0400
2a9306
@@ -388,7 +388,7 @@ static int become_daemon(void)
2a9306
 	if (do_fork) {
2a9306
 		if (pipe(init_pipe) || 
2a9306
 				fcntl(init_pipe[0], F_SETFD, FD_CLOEXEC) ||
2a9306
-				fcntl(init_pipe[0], F_SETFD, FD_CLOEXEC))
2a9306
+				fcntl(init_pipe[1], F_SETFD, FD_CLOEXEC))
2a9306
 			return -1;
2a9306
 		pid = fork();
2a9306
 	} else
2a9306
@@ -432,7 +432,9 @@ static int become_daemon(void)
2a9306
 			break;
2a9306
 		default:
2a9306
 			/* Wait for the child to say its done */
2a9306
-			rc = read(init_pipe[0], &status, sizeof(status));
2a9306
+			do {
2a9306
+				rc = read(init_pipe[0], &status,sizeof(status));
2a9306
+			} while (rc < 0 && errno == EINTR);
2a9306
 			if (rc < 0)
2a9306
 				return -1;
2a9306
 
2a9306
diff -urp audit-2.8.4.orig/src/auditd-dispatch.c audit-2.8.4/src/auditd-dispatch.c
2a9306
--- audit-2.8.4.orig/src/auditd-dispatch.c	2018-05-21 13:38:08.000000000 -0400
2a9306
+++ audit-2.8.4/src/auditd-dispatch.c	2018-06-27 08:13:27.590712076 -0400
2a9306
@@ -47,7 +47,6 @@ int dispatcher_pid(void)
2a9306
 
2a9306
 void dispatcher_reaped(void)
2a9306
 {
2a9306
-	audit_msg(LOG_INFO, "dispatcher %d reaped", pid);
2a9306
 	pid = 0;
2a9306
 	shutdown_dispatcher();
2a9306
 }