From 57ceeee424f42dbacc2aed48353428833d959165 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Sat, 26 Feb 2011 15:26:47 +0000 Subject: [PATCH] copy sig_action structure from the current thread if we're the same team. Helps with #7235 git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40701 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/thread.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/system/kernel/thread.cpp b/src/system/kernel/thread.cpp index 5663367315..f5dd86c88c 100644 --- a/src/system/kernel/thread.cpp +++ b/src/system/kernel/thread.cpp @@ -463,6 +463,10 @@ create_thread(thread_creation_attributes& attributes, bool kernel) // stop the new thread, if desired debugNewThread = debugFlags & B_THREAD_DEBUG_STOP_CHILD_THREADS; + + // copy signal handlers + memcpy(thread->sig_action, currentThread->sig_action, + sizeof(thread->sig_action)); } // insert into global list