K 10 svn:author V 7 davidxu K 8 svn:date V 27 2008-10-05T02:03:54.007920Z K 7 svn:log V 300 If the current thread has the trap bit set (i.e. a debugger had single stepped the process to the system call), we need to clear the trap flag from the new frame. Otherwise, the new thread will receive a (likely unexpected) SIGTRAP when it executes the first instruction after returning to userland. END