Re: Postfix race condition at boot

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Damien Miller
Date: Sunday, July 20, 2008 - 3:19 am

On Sun, 20 Jul 2008, Uwe Dippel wrote:


That shouldn't happen, because syslogd delays its exit until after
its log sockets have been established.

Maybe this will help (but I think not):

Index: syslogd.c
===================================================================
RCS file: /cvs/src/usr.sbin/syslogd/syslogd.c,v
retrieving revision 1.101
diff -u -p -r1.101 syslogd.c
--- syslogd.c	21 Apr 2008 22:09:51 -0000	1.101
+++ syslogd.c	20 Jul 2008 10:18:24 -0000
@@ -485,7 +485,8 @@ main(int argc, char *argv[])
 			break;
 		default:
 			close(lockpipe[1]);
-			read(lockpipe[0], &c, 1);
+			while (read(lockpipe[0], &c, 1) == -1 && errno == EINTR)
+				;
 			_exit(0);
 		}
 	}
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: Postfix race condition at boot, Uwe Dippel, (Sun Jul 20, 1:48 am)
Re: Postfix race condition at boot, Damien Miller, (Sun Jul 20, 3:19 am)
Re: Postfix race condition at boot, Brian Keefer, (Mon Sep 22, 8:23 pm)