Transferring locks from parent to child
Tony Stuart
tony at rlgvax.Reston.ICL.COM
Thu May 9 03:56:57 AEST 1991
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 at rlgvax.opcr.icl.com or uunet!rlgvax!tony
ICL North America, 11490 Commerce Park Drive, Reston, VA 22091
----------------------------------------------------------------
More information about the Comp.unix.programmer
mailing list