mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
final batch for "declared and not used"
* update mksyscall.sh and rebuild syscall/z*.go * fix a few linux-only files R=r DELTA=455 (12 added, 1 deleted, 442 changed) OCL=34637 CL=34655
This commit is contained in:
parent
9b5eb305e1
commit
98c98192ec
8 changed files with 441 additions and 430 deletions
|
|
@ -421,7 +421,6 @@ func (p *process) uninstallBreakpoints() os.Error {
|
|||
// event.
|
||||
func (t *thread) wait() {
|
||||
for {
|
||||
var err os.Error;
|
||||
var ev debugEvent;
|
||||
ev.t = t;
|
||||
t.logTrace("beginning wait");
|
||||
|
|
@ -764,7 +763,7 @@ func (p *process) do(f func () os.Error) os.Error {
|
|||
// 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; // do not block
|
||||
// TODO(austin) Wait until monitor has exited?
|
||||
}
|
||||
|
||||
|
|
@ -1215,7 +1214,7 @@ func (p *process) attachAllThreads() os.Error {
|
|||
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.
|
||||
|
|
@ -1309,7 +1308,7 @@ func ForkExec(argv0 string, argv []string, envv []string, dir string, fd []*os.F
|
|||
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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue