Daniel Eischen wrote:
> > No, libc_r doesn't properly handle flock.  Usually, all syscalls
> > that take file descriptors as arguments honor the non-blocking
> > mode of the file if set.  I guess flock(2) doesn't and has its
> > own option to the operation argument (LOCK_NB).
> >
> > I hacked libc_r to periodically check (every 100msecs) the
> > flock.  See if this fixes things:

Same thing I suggested, only I think he was really using fcntl(),
not flock()?

My patch wasn't integral to the library (it was more of a hack),
and my default time was 1S, not 100uS.

Same non-FIFO request ordering, too.  8-(.

I guess the real question is what is an fcntl()/flock() supposed
to do on a blocking call against a non-blocking fd?  I could not
tell, so I punted.

-- Terry

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to