Marc Dirix wrote:
> 
> 
> My apple mail client often suddenly crashes, withouth any reason when 
> it's getting new messages.
> I use dbmail-imap trunk 2027.

Looks like something is triggering a signal.

try making the accept failure fail louder (patch attached).



> 
> Here is an excerp from my logfile at loglevel 5
> 
> http://pastebin.com/605036
> 
> Hope this helps.
> 
> Furthermore when I use loglevel 5 I can see my password in the  logfile,
> is this intended?

Only if the client uses LOGIN instead of AUTHENTICATE. At level=5 all
imap commands are logged as-is.



-- 
  ________________________________________________________________
  Paul Stevens                                      paul at nfg.nl
  NET FACILITIES GROUP                     GPG/PGP: 1024D/11F8CD31
  The Netherlands________________________________http://www.nfg.nl
diff --git a/serverchild.c b/serverchild.c
index c3f4f2c..77ae5a1 100644
--- a/serverchild.c
+++ b/serverchild.c
@@ -201,7 +201,7 @@ pid_t CreateChild(ChildInfo_t * info)
 
 int PerformChildTask(ChildInfo_t * info)
 {
-	int i, len, clientSocket;
+	int i, len, serr, clientSocket;
 	struct sockaddr_in saClient;
 	struct hostent *clientHost;
 
@@ -245,8 +245,11 @@ int PerformChildTask(ChildInfo_t * info)
 		clientSocket = accept(info->listenSocket, (struct sockaddr *) &saClient, (socklen_t *)&len);
 
 		if (clientSocket == -1) {
+			serr = errno;
 			i--;	/* don't count this as a connect */
-			trace(TRACE_INFO, "%s,%s: accept failed", __FILE__, __func__);
+			trace(TRACE_INFO, "%s,%s: accept failed [%s]", 
+					__FILE__, __func__, strerror(serr));
+			errno = serr;
 			continue;	/* accept failed, refuse connection & continue */
 		}
 

Reply via email to