[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

From: Ken Hornstein
Subject: Re: [Nmh-workers] Locking (specifically, sequences)
Date: Mon, 11 Mar 2013 21:57:32 -0400

>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?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]