force ofile to be line-buffered, so command
continuation requests are immediately visible.
Showing
1 changed file
with
2 additions
and
0 deletions
... | @@ -192,6 +192,8 @@ imap4d_mainloop (int infile, int outfile) | ... | @@ -192,6 +192,8 @@ imap4d_mainloop (int infile, int outfile) |
192 | if (!ofile || !ifile) | 192 | if (!ofile || !ifile) |
193 | imap4d_bye (ERR_NO_OFILE); | 193 | imap4d_bye (ERR_NO_OFILE); |
194 | 194 | ||
195 | setvbuf(ofile, NULL, _IOLBF, 0); | ||
196 | |||
195 | syslog (LOG_INFO, "Incoming connection opened"); | 197 | syslog (LOG_INFO, "Incoming connection opened"); |
196 | 198 | ||
197 | /* log information on the connecting client */ | 199 | /* log information on the connecting client */ | ... | ... |
-
Please register or sign in to post a comment