commit | 0a62f23ad0a80e199a1cfdbc381f6bdcd9781468 | [log] [tgz] |
---|---|---|
author | Steven Rostedt (Red Hat) <rostedt@goodmis.org> | Wed Dec 17 21:36:11 2014 -0500 |
committer | Steven Rostedt <rostedt@goodmis.org> | Mon Jan 05 15:03:59 2015 -0500 |
tree | ef6ed59d6a9cef202df498ebc63bf0c3308017dc | |
parent | ccba2fa362eb43e072ddfd282da127c84bbabd66 [diff] |
trace-cmd: Flush out stdout before forking in record stdout flushes on new line when writing to console. But when stdout is redirected to a file, it does a larger buffering when writing. Unfortuately, this means that the output may still be in the buffer when we fork. This causes the output for things like the filter files and version number to be duplicated for each instance we fork. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>