882aaa
- Fix segfault on cleanup (#331271) - fix pipe output in conjunction with file capture - fix hang at end of reading from stdin - fix potential data loss due to short writes