From a7ff264477105b5dc0ade6facad4176a1b73df0b Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Wed, 27 Mar 2024 10:10:07 +1300 Subject: Don't clear pending interrupts in the parent process. (#10365) --- thread.c | 1 + 1 file changed, 1 insertion(+) (limited to 'thread.c') diff --git a/thread.c b/thread.c index 1859f727ea..196f9092b4 100644 --- a/thread.c +++ b/thread.c @@ -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); -- cgit v1.2.3