[LC++]IOStreams and forking.
filiond at videotron.ca
Wed Nov 6 01:26:01 UTC 2002
I have a program that opens a file (used as a log) then forks to create N
number of children.
My question is, in C++ when I call fork(), is the file supposed to stay
open or not?
I know that in C all open file descriptors are copied to the new process,
but does the same apply to iostreams?
At the moment, I seems to lose any IO to the file after the 1st fork.
Registerd (Slackware) linux user #195143
More information about the tuxCPProgramming