in reply to Re^2: Mysterious bad file descriptor after forkin thread Mysterious bad file descriptor after fork