Commit e8b81ae4 authored by Colin Watson's avatar Colin Watson
Browse files

pipecmd_exec: Flush stdio in PIPECMD_FUNCTION case

This fixes a regression in eceb4fc9
where we could lose some output from functions that write to standard
output but don't explicitly flush.

* lib/pipeline.c (pipecmd_exec): Flush output streams before exiting in
the PIPECMD_FUNCTION case.
parent f42a4472
......@@ -820,6 +820,7 @@ void pipecmd_exec (pipecmd *cmd)
cmdf->free_func (cmdf->data);
if (cmd->pre_exec_free_func)
cmd->pre_exec_free_func (cmd->pre_exec_data);
fflush (NULL);
_exit (0);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment