Coder Social home page Coder Social logo

bash_fail-to-wait's People

Contributors

jonasalfredsson avatar

Stargazers

 avatar

Watchers

 avatar

bash_fail-to-wait's Issues

Result on kernel 5.12.3-arch1-1

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.

Patch on the way

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.

wait-n-reset.patch.txt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.