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

@ -4725,6 +4725,7 @@ void
rb_thread_atfork(void)
{
rb_thread_t *th = GET_THREAD();
rb_threadptr_pending_interrupt_clear(th);
rb_thread_atfork_internal(th, terminate_atfork_i);
th->join_list = NULL;
rb_fiber_atfork(th);