Does this lockfile method work?

Doug Gwyn gwyn at smoke.BRL.MIL
Sun Sep 30 12:44:28 AEST 1990


In article <a66fe0.6a9e at quack.sac.ca.us> mrapple at quack.sac.ca.us (Nick Sayer) writes:
>In particular, is there any conceivable circumstance where
>the link() function fails when multiple processes are trying
>to link into the same destination?

link() is atomic in this respect.  The only unexpected failure mode
I can think of is if there are already the maximum supported number
of (other) links to the inode.



More information about the Comp.unix.questions mailing list