[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bash: sleep execution issue with bash loadable builtins
From: |
Chet Ramey |
Subject: |
Re: Bash: sleep execution issue with bash loadable builtins |
Date: |
Tue, 28 Nov 2017 09:41:03 -0800 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 |
On 11/27/17 2:47 PM, Ángel wrote:
> Also there's the issue that select() _may_ modify the object pointed to
> by the timeout argument [POSIX]. But it may not, in which case this
> would end up oversleeping.
>
> On such system, doing eg.
> sleep 9 & time sleep 10
>
> would end up sleeping 19 seconds.
I can't see how, since the two sleeps would be performed by different
processes, using two separately-initialized select calls.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/