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

rewrite BrowserStackLocal spawning to be better #37

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Roguelazer
Copy link

Right now, the spawning uses IO.popen and has a bunch of workarounds to support Ruby 1.8. This is pretty bad.

Ruby 1.8 has been EOL for more than 10 years. I don't think we need to support it any more.

This rewrites the process spawning to use Stripe's excellent subprocess gem. It also adds a startup timeout, because right now if the BrowserStackLocal binary hangs for some reason, the entire program is just stuck on a .readline call. It also calls .wait on the child process after dæmonization succeeds, because otherwise you end up with an un-reaped defunct process sitting around forever.

@Roguelazer Roguelazer requested a review from a team as a code owner February 16, 2024 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant