nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] Locking (specifically, sequences)

2013-03-11 20:58:42
The cheap hack way out of this is to set up a select() loop, create a 
pipe(), set a timer, then do the lock.  If the alarm fires, write a byte 
down the pipe from the signal handler which triggers a return from the 
select(), and a lookup of the returned FD tells you "timeout!"

So you're calling select() and fcntl(LOCK...) at the same time?

--Ken

_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>