On Fri, Jan 2, 2015 at 8:53 PM, Bradley Asztalos <[email protected]> wrote: > On Fri, Jan 2, 2015 at 7:35 AM, Ole Tange <[email protected]> wrote: >> On Fri, Jan 2, 2015 at 10:51 AM, Bradley Asztalos >> <[email protected]> wrote: : >> So that is almost the opposite of --semaphoretimeout >> >> Maybe it should be able to take a negative value: If you cannot get >> the semaphore within 2 seconds, give up. >> >> sem --semaphoretimeout -2 do_stuff
> That would work. > > Does --semaphoretimeout 0 mean never give up? Yes: Just as if the option had not been given. > If so then -0 could mean give up immediately. -0 = 0, so no. It is implemented in the git version. > By the way the note on the sem man page says that sem --timeout is not > implemented. I have updated the man page. --timeout is for timing out the running of the command. --semaphoretimeout is for timing out on getting the semaphore. /Ole
