Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [BUG] zsystem:34: flock: invalid timeout value: '0'



On Sat, Jun 27, 2020 at 12:27 AM Roman Perepelitsa <
roman.perepelitsa@xxxxxxxxx> wrote:

>
> Timeout strictly between 0 and 1 microsecond is not much different
> from timeout between 1 and 2 microseconds. You can either round up or
> down in both cases. Rounding up is the right thing to do for sleeps
> and timeouts because it allows you to provide a guarantee.
>

I would be mildly surprised if this doesn't happen as part of the OS
implementation of the operation.


Messages sorted by: Reverse Date, Date, Thread, Author