Re: Trying to understand flock()

2004-11-04 Thread Henrik W Lund
Ronald F. Guilmette wrote: Greetings friends, I wonder if someone would be kind enough to enlighten me about the semantics of the flock(2) function. I have RTFM'd, and I am sad to say that I am still rather mystified that flock() doesn't seem to do what it is documented as doing. (I am testing

Re: Trying to understand flock()

2004-11-04 Thread Ronald F. Guilmette
In message [EMAIL PROTECTED], you wrote: From the flock manpage: ...file descriptors duplicated through dup(2) or fork(2) do not result in multiple instances of a lock, but rather multiple references to the same lock. You're basically trying to place a lock you already hold, making the

Trying to understand flock()

2004-11-03 Thread Ronald F. Guilmette
Greetings friends, I wonder if someone would be kind enough to enlighten me about the semantics of the flock(2) function. I have RTFM'd, and I am sad to say that I am still rather mystified that flock() doesn't seem to do what it is documented as doing. (I am testing it on 4.10-RELEASE, by the

Re: Trying to understand flock()

2004-11-03 Thread jason
Ronald F. Guilmette wrote: Greetings friends, I wonder if someone would be kind enough to enlighten me about the semantics of the flock(2) function. I have RTFM'd, and I am sad to say that I am still rather mystified that flock() doesn't seem to do what it is documented as doing. (I am testing