[Moscow.pm] fork и fork: кому верить?

Alex Povolotsky tarkhil на over.ru
Ср Июл 25 08:03:27 PDT 2012


On 07/25/12 19:00, Sergey Aleynikov wrote:
> Добрый день,
>
>> документация на fork(2) утверждает, что
>             o   The child process has its own copy of the parent's descriptors.
>                 These descriptors reference the same underlying objects, so
>                 that, for instance, file pointers in file objects are shared
>                 between the child and the parent, so that an lseek(2) on a
>                 descriptor in the child process can affect a subsequent read(2)
>                 or write(2) by the parent.
>
> В чтении манов не следует останавливаться на полпути.
>

Т.е. перловая документация просто имеет в виду, что разные КОПИИ 
дескрипторов указывают на один объект.

Понятно

Alex


Подробная информация о списке рассылки Moscow-pm