fixunix
Tags Register FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read

=?WINDOWS-1252?Q?manual_page_'ack_to_Inbox_Arch?= =?WINDOWS-1252?Q?iveReport_SpamDelete_More_Acti?= =?WINDOWS-1252?Q?ons_1_of_584_Older_=9B_manual_pa?= =?WINDOWS-1252?Q?ge_'man_2_fork'_wrt_file_locks?= - Kernel

This is a discussion on =?WINDOWS-1252?Q?manual_page_'ack_to_Inbox_Arch?= =?WINDOWS-1252?Q?iveReport_SpamDelete_More_Acti?= =?WINDOWS-1252?Q?ons_1_of_584_Older_=9B_manual_pa?= =?WINDOWS-1252?Q?ge_'man_2_fork'_wrt_file_locks?= - Kernel ; 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 ...


Fix Unix > Linux > Help > Kernel > =?WINDOWS-1252?Q?manual_page_'ack_to_Inbox_Arch?= =?WINDOWS-1252?Q?iveReport_SpamDelete_More_Acti?= =?WINDOWS-1252?Q?ons_1_of_584_Older_=9B_manual_pa?= =?WINDOWS-1252?Q?ge_'man_2_fork'_wrt_file_locks?=

Reply
 
LinkBack Tools
  #1  
Old 11-19-2007, 02:20 PM
Junior Member
 
Join Date: Sep 2009
Posts: 0
Default =?WINDOWS-1252?Q?manual_page_'ack_to_Inbox_Arch?= =?WINDOWS-1252?Q?iveReport_SpamDelete_More_Acti?= =?WINDOWS-1252?Q?ons_1_of_584_Older_=9B_manual_pa?= =?WINDOWS-1252?Q?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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Reply With Quote
  #2  
Old 11-19-2007, 02:30 PM
Junior Member
 
Join Date: Sep 2009
Posts: 0
Default =?WINDOWS-1252?Q?Re:_manual_page_'ack_to_Inbox_A?= =?WINDOWS-1252?Q?rchiveReport_SpamDelete_More_Ac?= =?WINDOWS-1252?Q?tions_1_of_584_Older_=9B_manual_p?= =?WINDOWS-1252?Q?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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Reply With Quote