2007-11-19 14:10:54

by Yakov Lerner

[permalink] [raw]
Subject: manual page 'ack to Inbox ArchiveReport SpamDelete More Acti ons 1 of 584 Older › manual pa ge 'man 2 fork' wrt file locks

Manual page 'man 2 fork' says:
'File locks ... are not inherited.'
This is true for POSIX locks (fcntl-style locks).

But flock-style locks (aka bsd-style locks) are not inherited across
fork, correct ?

Would not it be more helpful if fork manpage said:

POSIX file locks(fcntl(2)) are not inherited.
flock-style locks are inherited (see flock(2))

?

Yakov


2007-11-19 14:25:18

by Yakov Lerner

[permalink] [raw]
Subject: Re: manual page 'ack to Inbox ArchiveReport SpamDelete More Ac tions 1 of 584 Older › manual p age 'man 2 fork' wrt file locks

Sorry for the screwed subject line. Should have been:

Subject: manual page 'man 2 fork' wrt file locks

Yakov