interactive: Set stderr to nonbuffered mode.
[paraslash.git] / interactive.c
index 00b3022..12fcfe1 100644 (file)
@@ -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);