Добрый день,

документация на fork(2) утверждает, что

The child process has its own copy of the parent's descriptors

а perldoc fork - что

File descriptors (and sometimes locks on those descriptors) are shared, while everything else is copied.

Насколько я понимаю, без очень нетривиальных трюков реализовать шаринг дескрипторов при форке не получится.

В любом случае, интересно, кому верить.

Alex
--
Moscow.pm mailing list
[email protected] | http://moscow.pm.org

Ответить