This commit is contained in:
Derek Parker
2014-05-23 19:01:56 -05:00
parent e22878211b
commit ca7fd6dd06

View File

@ -19,7 +19,7 @@ type term struct {
func main() { func main() {
// We must ensure here that we are running on the same thread during // We must ensure here that we are running on the same thread during
// the execution of dbg. This is due to the fact that ptrace(2) expects // the execution of dbg. This is due to the fact that ptrace(2) expects
// all commands after PT_ATTACH to come from the same thread. // all commands after PTRACE_ATTACH to come from the same thread.
runtime.LockOSThread() runtime.LockOSThread()
t := newTerm() t := newTerm()