From 75be29e98ea294bf54a84d0ec12c692d0f2f2786 Mon Sep 17 00:00:00 2001 From: Mark Date: Fri, 10 Jul 2020 13:57:24 +0300 Subject: [PATCH] Inherit signal entry on clone() --- sys/thread.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/thread.c b/sys/thread.c index 8603e0a..16504d1 100644 --- a/sys/thread.c +++ b/sys/thread.c @@ -263,6 +263,8 @@ int sys_clone(int (*fn) (void *), void *stack, int flags, void *arg) { return res; } + thr->signal_entry = thread_self->signal_entry; + if (thread_self->next_thread) { thr->next_thread = thread_self->next_thread; }