jonasalfredsson / bash_fail-to-wait Goto Github PK
View Code? Open in Web Editor NEWSmall repository used to reproduce a potential bug with the `wait` command in Bash >5.0.
Small repository used to reproduce a potential bug with the `wait` command in Bash >5.0.
Here is the result on kernel 5.12.3
No error on run50
$ make run50
docker run -it --rm --name waiter wait-reproducer bash5.0 ./fail_to_wait.sh
GNU bash, version 5.0.3(1)-release (x86_64-pc-linux-gnu)
A child process with PID 10 has now started
loop_iteration: 0
Pre signal code:
Received SIGHUP
Post signal code: 129
loop_iteration: 1
Pre signal code: 129
Error on run51
$ make run51
docker run -it --rm --name waiter wait-reproducer bash5.1 ./fail_to_wait.sh
GNU bash, version 5.1.0(1)-release (x86_64-pc-linux-gnu)
A child process with PID 10 has now started
loop_iteration: 0
Pre signal code:
Received SIGHUP
Post signal code: 129
loop_iteration: 1
Pre signal code: 129
Post signal code: 127
make: *** [Makefile:14: run51] Error 127
Error on bash 5.1 and not on bash 5.0 . I am able to reproduce it on my end.
I reported this issue to [email protected], and got a response from Chet Ramey who agreed with me that this was a regression.
Thanks for the report. The issue is a change between bash-5.0 and bash-5.1
to understand PID arguments with -n. The job state wasn't restored upon
receipt of all trapped signals and interfered with subsequent calls to
`wait -n'.Chet
He was also extremely quick in providing a patch, which I will attach here as well.
I have not heard anything about when this fix will be released, but I guess it will be included in the next version.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.