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
This commit is contained in:
Jérôme Duval
2011-02-26 15:26:47 +00:00
parent 9717d515fd
commit 57ceeee424
+4
View File
@@ -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