[comp.unix.programmer] Transferring locks from parent to child

tony@rlgvax.Reston.ICL.COM (Tony Stuart) (05/09/91)

The SYS V.3 man page for fcntl(2) says "Locks are not inherited by
a child process in a fork(2) system call." My problem is that I need
them to be. I can think of a couple of ways to transfer a lock from
the parent process to the child process for my particular application,
but all of them are a little more complicated than I'd like. Does anyone
know of a simple, generic way to transfer locks from parent to child?
-- 
----------------------------------------------------------------
Anthony F. Stuart, tony@rlgvax.opcr.icl.com or uunet!rlgvax!tony
ICL North America, 11490 Commerce Park Drive, Reston, VA 22091
----------------------------------------------------------------