in reply to multiple fork()

Try doing your file open inside of the forked process.