mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
files that are okay from the last gofmt round
R=gri http://go/go-review/1015011
This commit is contained in:
parent
58ee1f5d54
commit
d2829faa7c
16 changed files with 53 additions and 68 deletions
|
|
@ -220,7 +220,7 @@ func (e *newThreadError) String() string {
|
|||
return fmt.Sprintf("newThread wait wanted pid %v and signal %v, got %v and %v", e.Pid, e.StopSignal(), e.wantPid, e.wantSig);
|
||||
}
|
||||
|
||||
type ProcessExited struct {}
|
||||
type ProcessExited struct{}
|
||||
|
||||
func (p ProcessExited) String() string {
|
||||
return "process exited";
|
||||
|
|
@ -449,9 +449,9 @@ func (t *thread) wait() {
|
|||
if err == nil {
|
||||
continue;
|
||||
}
|
||||
// If we failed to continue, just let
|
||||
// the stop go through so we can
|
||||
// update the thread's state.
|
||||
// If we failed to continue, just let
|
||||
// the stop go through so we can
|
||||
// update the thread's state.
|
||||
}
|
||||
if !<-t.proc.ready {
|
||||
// The monitor exited
|
||||
|
|
@ -852,12 +852,8 @@ func (t *thread) stepAsync(ready chan os.Error) os.Error {
|
|||
return err;
|
||||
}
|
||||
t.setState(singleStepping);
|
||||
t.onStop(func() {
|
||||
ready <- nil;
|
||||
},
|
||||
func(err os.Error) {
|
||||
ready <- err;
|
||||
});
|
||||
t.onStop(func() { ready <- nil },
|
||||
func(err os.Error) { ready <- err });
|
||||
return nil;
|
||||
}
|
||||
|
||||
|
|
@ -1100,9 +1096,7 @@ func (p *process) WaitStop() os.Error {
|
|||
}
|
||||
p.transitionHandlers.Push(h);
|
||||
};
|
||||
h.onErr = func(err os.Error) {
|
||||
ready <- err;
|
||||
};
|
||||
h.onErr = func(err os.Error) { ready <- err };
|
||||
p.transitionHandlers.Push(h);
|
||||
return nil;
|
||||
});
|
||||
|
|
@ -1114,9 +1108,7 @@ func (p *process) WaitStop() os.Error {
|
|||
}
|
||||
|
||||
func (p *process) Stop() os.Error {
|
||||
err := p.do(func() os.Error {
|
||||
return p.stopAsync();
|
||||
});
|
||||
err := p.do(func() os.Error { return p.stopAsync() });
|
||||
if err != nil {
|
||||
return err;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue