On Tue, 2009-03-24 at 20:08 +0100, Jérôme Blanc wrote:
> I attached a text file with the strace output as copying it in an email would 
> be awful to read with the 80 characters limit.

Well, that did look interesting. The problem is that the listener socket
isn't passed from master process to login process. Could you try if it
fails with a different error with the attached patch?

diff -r 58880897b708 src/master/login-process.c
--- a/src/master/login-process.c	Tue Mar 24 13:06:30 2009 -0400
+++ b/src/master/login-process.c	Tue Mar 24 15:27:05 2009 -0400
@@ -682,12 +682,12 @@
 	if (dup2_array(&dups) < 0)
 		i_fatal("Failed to dup2() fds");
 
+	(void)close(fd[0]);
+	(void)close(fd[1]);
+
 	/* don't close any of these */
 	for (tmp_fd = 0; tmp_fd < cur_fd; tmp_fd++)
 		fd_close_on_exec(tmp_fd, FALSE);
-
-	(void)close(fd[0]);
-	(void)close(fd[1]);
 
 	login_process_init_env(group, getpid());
 

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to