in reply to Re^3: Capturing stdout and segfault of a programin thread Capturing stdout and segfault of a program