Commit 546af059 546af059a1ca12e8d8a536b2ba2e06b297df50a1 by Sergey Poznyakoff

Handle SIGPIPE separately. Many clients seem to not wait for a response to LOGOUT command.

1 parent 0bdc2655
......@@ -47,7 +47,18 @@ imap4d_signal (int signo)
exit (1); /* abort(); */
}
if (signo == SIGALRM)
switch (signo)
{
case SIGALRM:
imap4d_bye (ERR_TIMEOUT);
case SIGPIPE:
exit (0);
default:
imap4d_bye (ERR_SIGNAL);
}
}
......