[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: singleton for script with shebang
From: |
Ole Tange |
Subject: |
Re: singleton for script with shebang |
Date: |
Sun, 4 Jan 2015 15:26:06 +0100 |
On Sat, Jan 3, 2015 at 10:09 PM, Bradley <brad@customweather.com> wrote:
>> On Jan 3, 27 Heisei, at 11:21 AM, Ole Tange <ole@tange.dk> wrote:
>>> On Fri, Jan 2, 2015 at 8:53 PM, Bradley Asztalos <brad@customweather.com>
>>> wrote:
>>>> On Fri, Jan 2, 2015 at 7:35 AM, Ole Tange <ole@tange.dk> wrote:
>>>> On Fri, Jan 2, 2015 at 10:51 AM, Bradley Asztalos
>>>> <brad@customweather.com> wrote:
:
>>> 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.
:
> So did you provide for a way to give up immediately if sem cannot be acquired
> immediately?
As mentioned, no.
If you feel that is very important, please provide a situation where
waiting 1 sec for the semaphore before giving up is much worse than
waiting 0.2 sec (which is more or less the time it takes to run sem).
I could not find a situation in which that extra second made a huge
difference. On the contrary I can easily find situations where giving
up immediately is less useful than trying for just a second.
/Ole
- Re: singleton for script with shebang, (continued)
Re: singleton for script with shebang, Ole Tange, 2015/01/02
- Re: singleton for script with shebang, Bradley, 2015/01/02
- Re: singleton for script with shebang, Bradley Asztalos, 2015/01/02
- Re: singleton for script with shebang, Bradley Asztalos, 2015/01/02
- Re: singleton for script with shebang, Ole Tange, 2015/01/02
- Re: singleton for script with shebang, Bradley Asztalos, 2015/01/02
- Re: singleton for script with shebang, Ole Tange, 2015/01/03
- Re: singleton for script with shebang, Bradley, 2015/01/03
- Re: singleton for script with shebang,
Ole Tange <=
- Re: singleton for script with shebang, Bradley Asztalos, 2015/01/04