Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #15667

Re: loadable sleep exits immediately

From Chet Ramey <chet.ramey@case.edu>
Newsgroups gnu.bash.bug
Subject Re: loadable sleep exits immediately
Date 2019-11-13 09:21 -0500
Message-ID <mailman.1339.1573654924.13325.bug-bash@gnu.org> (permalink)
References <E1iUWx4-0001zD-S7@eggs.gnu.org> <df4ce4fd-59f7-2d1b-ed06-cc4494cb00c7@case.edu>

Show all headers | View raw


On 11/12/19 9:15 AM, p.debruijn@unilogic.nl wrote:

> Bash Version: 4.4
> Patch Level: 23
> Release Status: release
> 
> Description:
> 	The loadable sleep function seems to exit almost immediately
> 	in some specific cases.

It's getting interrupted by SIGCHLD. It's fixed in bash-5.0 by blocking 
SIGCHLD in the appropriate function, using select or pselect.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
		 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

Re: loadable sleep exits immediately Chet Ramey <chet.ramey@case.edu> - 2019-11-13 09:21 -0500

csiph-web