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