Author: korli Date: 2011-02-26 16:26:47 +0100 (Sat, 26 Feb 2011) New Revision: 40701 Changeset: http://dev.haiku-os.org/changeset/40701 Ticket: http://dev.haiku-os.org/ticket/7235 Modified: haiku/trunk/src/system/kernel/thread.cpp Log: copy sig_action structure from the current thread if we're the same team. Helps with #7235 Modified: haiku/trunk/src/system/kernel/thread.cpp =================================================================== --- haiku/trunk/src/system/kernel/thread.cpp 2011-02-26 12:45:45 UTC (rev 40700) +++ haiku/trunk/src/system/kernel/thread.cpp 2011-02-26 15:26:47 UTC (rev 40701) @@ -463,6 +463,10 @@ // 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