Don't clear pending interrupts in the parent process. (#10365)

This commit is contained in:
Samuel Williams 2024-03-27 10:10:07 +13:00 committed by GitHub
parent 0c62eb25b5
commit a7ff264477
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 22 additions and 1 deletions

View file

@ -1682,7 +1682,6 @@ before_fork_ruby(void)
static void
after_fork_ruby(rb_pid_t pid)
{
rb_threadptr_pending_interrupt_clear(GET_THREAD());
if (pid == 0) {
// child
clear_pid_cache();