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

Process waits for forked children when 'debug' is loaded #1113

Open
sudoremo opened this issue Aug 26, 2024 · 1 comment
Open

Process waits for forked children when 'debug' is loaded #1113

sudoremo opened this issue Aug 26, 2024 · 1 comment

Comments

@sudoremo
Copy link

Your environment

  • ruby -v: ruby 3.2.1 (2023-02-08 revision 31819e82c8) +YJIT [x86_64-darwin23]
  • rdbg -v: rdbg 1.9.2

Describe the bug

When forking a ruby process without detaching it, the parent process should not wait for the child process to exit. Requiring debug however makes the process wait until the child process quits.

To Reproduce

require 'debug'

fork { sleep 10 }

Expected behavior

The parent process should exit immediately after forking. Effective behaviour is that the parent process waits for the child process to exit, which takes roughly 10s in the example above. Without the Gem debug, it works as expected.

Additional context

May be related to #1099.

@sudoremo
Copy link
Author

May I bump this issue? This is quite a concern for us at the moment. We've tried looking into it ourselves, but so far I had no luck in identifying the problem. Many thanks for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant