in reply to File handles with forked processes
Much to my surprise the file opened in the first child is also opened in the second child according to process explorer (although I doubt the file handle created in the first child is shared)
This is the promise of fork, even of emulated fork, clone everything, so this is what you should expect to happen.
Maybe you want to fork before opening file handles?
or not fork at all , spawn a background process Proc::Background...?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: File handles with forked processes
by mvaline (Friar) on Oct 10, 2015 at 02:05 UTC |