summaryrefslogtreecommitdiff
path: root/pop3d
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2003-01-22 13:18:31 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2003-01-22 13:18:31 +0000
commitc98fcdb87b2037746d23c061090848078b08ca30 (patch)
tree86072ddd46b2bcfe5e072c015c4c528072ee1c4a /pop3d
parentb364760dd1a1268dc5c2b7d7b4ed40e3db897af1 (diff)
downloadmailutils-c98fcdb87b2037746d23c061090848078b08ca30.tar.gz
mailutils-c98fcdb87b2037746d23c061090848078b08ca30.tar.bz2
(pop3d_setio): Make sure both streams are line-buffered.
Diffstat (limited to 'pop3d')
-rw-r--r--pop3d/extra.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pop3d/extra.c b/pop3d/extra.c
index d10f800c7..6fe8ed6c2 100644
--- a/pop3d/extra.c
+++ b/pop3d/extra.c
@@ -138,6 +138,8 @@ pop3d_setio (FILE *in, FILE *out)
if (!in || !out)
pop3d_abquit (ERR_NO_OFILE);
+ setvbuf (in, NULL, _IOLBF, 0);
+ setvbuf (out, NULL, _IOLBF, 0);
if (stdio_stream_create (&istream, in, MU_STREAM_NO_CLOSE)
|| stdio_stream_create (&ostream, out, MU_STREAM_NO_CLOSE))
pop3d_abquit (ERR_NO_OFILE);

Return to:

Send suggestions and report system problems to the System administrator.