summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authorSamuel Williams <[email protected]>2024-03-27 10:10:07 +1300
committerGitHub <[email protected]>2024-03-27 10:10:07 +1300
commita7ff264477105b5dc0ade6facad4176a1b73df0b (patch)
tree6b045c951f65e2a767395667e3f8d5b4f14a3dbd /thread.c
parent0c62eb25b5c7a2ce6764e81bf98ac39a804a3721 (diff)
Don't clear pending interrupts in the parent process. (#10365)
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c1
1 files changed, 1 insertions, 0 deletions
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);