Re: File locking anomaly under 2.0.30

Theodore Y. Ts'o (tytso@MIT.EDU)
Thu, 24 Jul 1997 13:54:33 -0400

Yup, you're quite right. POSIX states,

"All locks associated with a file for a given process shall be
removed when a file descriptor for that file is closed by that
process or the process holding that file descriptor terminates.
Locks are not inherited by a child process created using the
fork() function."

- Ted