Blame SOURCES/mcelog-patch-1bd2984.patch

09c1d0
From: Prarit Bhargava <prarit@redhat.com>
09c1d0
09c1d0
fix: server does not start because it assumed it is already running
09c1d0
09c1d0
commit 1bd29846db20a76ec7492dd54716a11976a5d9fb
09c1d0
Author: Balázs Póka <poka@idata.hu>
09c1d0
Date:   Sat Aug 22 14:06:14 2015 +0200
09c1d0
09c1d0
    fix: server does not start because it assumed it is already running
09c1d0
09c1d0
diff --git a/server.c b/server.c
09c1d0
index a1fa7da16ba79663bdf2f4542d0b82fdd2a786b9..eddf147a527e721419b752ea56577ee36c85056a 100644
09c1d0
--- a/server.c
09c1d0
+++ b/server.c
09c1d0
@@ -297,9 +297,9 @@ static int server_ping(struct sockaddr_un *un)
09c1d0
 	if (fd < 0)
09c1d0
 		return 0;
09c1d0
 
09c1d0
-	sigaction(SIGALRM, &sa, &oldsa);	
09c1d0
+	sigaction(SIGALRM, &sa, &oldsa);
09c1d0
 	if (sigsetjmp(ping_timeout_ctx, 1) == 0) {
09c1d0
-		ret = 0;
09c1d0
+		ret = -1;
09c1d0
 		alarm(initial_ping_timeout);
09c1d0
 		if (connect(fd, un, sizeof(struct sockaddr_un)) < 0)
09c1d0
 			goto cleanup;
09c1d0
@@ -315,7 +315,7 @@ cleanup:
09c1d0
 	sigaction(SIGALRM, &oldsa, NULL);
09c1d0
 	alarm(0);
09c1d0
 	close(fd);
09c1d0
-	return ret;	
09c1d0
+	return ret;
09c1d0
 }
09c1d0
 
09c1d0
 void server_setup(void)