in reply to Fork child
Does the STDERR get closed automatically when I fork?It's really trivial to test:
So, the answer is no.$ perl -wle 'fork; warn $$' 1787 at -e line 1. 1786 at -e line 1. $
Also, from perldoc -f fork
File descriptors (and sometimes locks on those descriptors) are shared, while everything else is copied.
|
|---|