KEMBAR78
Wrap `do_fast_fallback_getaddrinfo` with `rb_thread_prevent_fork` by shioimm · Pull Request #12366 · ruby/ruby · GitHub
Skip to content

Conversation

@shioimm
Copy link
Contributor

@shioimm shioimm commented Dec 17, 2024

Referencing PR #10864,
wrap do_fast_fallback_getaddrinfo with rb_thread_prevent_fork to avoid fork safety issues.

do_fast_fallback_getaddrinfo internally uses getaddrinfo(3), leading to fork safety issues, as described in PR #10864. This change ensures that do_fast_fallback_getaddrinfo is guarded by rb_thread_prevent_fork,
preventing fork during its execution and avoiding related issues.

Referencing PR ruby#10864,
wrap `do_fast_fallback_getaddrinfo` with `rb_thread_prevent_fork`
to avoid fork safety issues.

`do_fast_fallback_getaddrinfo` internally uses getaddrinfo(3),
leading to fork safety issues, as described in PR ruby#10864.
This change ensures that `do_fast_fallback_getaddrinfo`
is guarded by `rb_thread_prevent_fork`,
preventing fork during its execution and avoiding related issues.
@shioimm shioimm force-pushed the do_fast_fallback_getaddrinfo-in-rb_thread_prevent_fork branch from 570336b to 781a0a7 Compare December 17, 2024 12:06
@launchable-app
Copy link

launchable-app bot commented Dec 17, 2024

All Tests passed!

✖️no tests failed ✔️65476 tests passed(3 flakes)

@launchable-app
Copy link

All Tests passed!

✖️no tests failed ✔️64750 tests passed(2 flakes)

7 similar comments
@launchable-app
Copy link

All Tests passed!

✖️no tests failed ✔️64750 tests passed(2 flakes)

@launchable-app
Copy link

All Tests passed!

✖️no tests failed ✔️64750 tests passed(2 flakes)

@launchable-app
Copy link

All Tests passed!

✖️no tests failed ✔️64750 tests passed(2 flakes)

@launchable-app
Copy link

All Tests passed!

✖️no tests failed ✔️64750 tests passed(2 flakes)

@launchable-app
Copy link

All Tests passed!

✖️no tests failed ✔️64750 tests passed(2 flakes)

@launchable-app
Copy link

All Tests passed!

✖️no tests failed ✔️64750 tests passed(2 flakes)

@launchable-app
Copy link

All Tests passed!

✖️no tests failed ✔️64750 tests passed(2 flakes)

@shioimm shioimm marked this pull request as ready for review December 18, 2024 00:37
@shioimm shioimm changed the title Wrap getaddrinfo(3) with rb_thread_prevent_fork Wrap do_fast_fallback_getaddrinfo with rb_thread_prevent_fork Dec 18, 2024
@shioimm shioimm merged commit 498d6eb into ruby:master Dec 18, 2024
77 checks passed
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