Giles Lean <[EMAIL PROTECTED]> writes:
> Boring reference material follows.

Couldn't help noticing that you omitted HPUX ;-)

On HPUX 10.20, flock doesn't seem to exist (hasn't got a man page nor
any mention in /usr/include).  lockf says

     All locks for a process are released upon
     the first close of the file, even if the process still has the file
     opened, and all locks held by a process are released when the process


     When a file descriptor is closed, all locks on the file from the
     calling process are deleted, even if other file descriptors for that
     file (obtained through dup() or open(), for example) still exist.

which seems to imply (but doesn't actually say) that HPUX keeps track of
exactly which process took out the lock, even if the file is held open
by multiple processes.

This all doesn't look good for using file locks in the way I had in
mind :-( ... but considering that all these man pages seem pretty vague,
maybe some direct experimentation is called for.

                        regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

Reply via email to