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) ...@@ -47,7 +47,18 @@ imap4d_signal (int signo)
47 exit (1); /* abort(); */ 47 exit (1); /* abort(); */
48 } 48 }
49 49
50 if (signo == SIGALRM) 50 switch (signo)
51 {
52 case SIGALRM:
51 imap4d_bye (ERR_TIMEOUT); 53 imap4d_bye (ERR_TIMEOUT);
54
55 case SIGPIPE:
56 exit (0);
57
58 default:
52 imap4d_bye (ERR_SIGNAL); 59 imap4d_bye (ERR_SIGNAL);
53 } 60 }
61 }
62
63
64
......