Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove AtExit code #841

Merged
merged 11 commits into from Feb 7, 2020
2 changes: 2 additions & 0 deletions spec/concurrent/executor/cached_thread_pool_spec.rb
Expand Up @@ -212,6 +212,8 @@ module Concurrent
pid = spawn RbConfig.ruby, test_file
Process.waitpid pid
expect($?.success?).to eq true
rescue Errno::ECHILD
# child already gone
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah! I was also fixing this :)

            rescue Errno::ECHILD
              # the child could quit out fast enough before we try to wait for it!

I think we could TODO move this test to executor_service_shared & have pool_quits start every type of executor service: cached & single executor

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah that sounds like a good idea! Would you be willing to do it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

rescue Timeout::Error => e
Process.kill :KILL, pid
raise e
Expand Down