// event.
func (t *thread) wait() {
for {
- var err os.Error;
var ev debugEvent;
ev.t = t;
t.logTrace("beginning wait");
// stopMonitor stops the monitor with the given error. If the monitor
// is already stopped, does nothing.
func (p *process) stopMonitor(err os.Error) {
- doNotBlock := p.stopReq <- err;
+ _ = p.stopReq <- err;
// TODO(austin) Wait until monitor has exited?
}
continue;
}
- t, err := p.attachThread(tid);
+ _, err = p.attachThread(tid);
if err != nil {
// There could have been a race, or
// this process could be a zobmie.
p.pid = pid;
// The process will raise SIGTRAP when it reaches execve.
- t, err := p.newThread(pid, syscall.SIGTRAP, false);
+ _, err := p.newThread(pid, syscall.SIGTRAP, false);
return err;
});
if err != nil {