From: Andre Noll Date: Thu, 5 Apr 2012 23:18:23 +0000 (+0200) Subject: interactive: Set stderr to nonbuffered mode. X-Git-Tag: v0.4.11~30 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=d46813b8c741782c07d6741c261d0575a8de00dd;p=paraslash.git interactive: Set stderr to nonbuffered mode. fdopen() might return a stream which is fully buffered or line buffered. We want unbuffered unconditionally, so explicitly set the stream to unbuffered mode. --- diff --git a/interactive.c b/interactive.c index 00b30223..12fcfe15 100644 --- a/interactive.c +++ b/interactive.c @@ -381,6 +381,7 @@ int i9e_open(struct i9e_client_info *ici, struct sched *s) rl_attempted_completion_function = i9e_completer; i9ep->ici = ici; i9ep->stderr_stream = fdopen(ici->fds[2], "w"); + setvbuf(i9ep->stderr_stream, NULL, _IONBF, 0); if (ici->history_file) read_history(ici->history_file);