]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - interactive.c
interactive: Set stderr to nonbuffered mode.
[paraslash.git] / interactive.c
index 00b30223579821f8e3ee4071c6de9df61129e90a..12fcfe15440526b224b2f01a9f4bfe753e2edbd1 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");
        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);
 
        if (ici->history_file)
                read_history(ici->history_file);