Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,6 @@ linters:
- staticcheck
path: internal/winapi/
text: "ST1003:"
- linters:
- staticcheck
path: internal/vmcompute/
text: "ST1003:"
- linters:
- staticcheck
path: internal/regstate/
Expand Down
8 changes: 6 additions & 2 deletions internal/gcs/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,10 @@ func (p *Process) ExitCode() (_ int, err error) {
return -1, errors.New("process not exited")
}
if err := p.waitCall.Err(); err != nil {
return -1, err
var rerr *rpcError
if !errors.As(err, &rerr) || uint32(rerr.result) != hrNotFound {
return -1, err
}
}
return int(p.waitResp.ExitCode), nil
}
Expand Down Expand Up @@ -274,7 +277,8 @@ func (p *Process) Stdio() (stdin io.Writer, stdout, stderr io.Reader) {
// Wait waits for the process (or guest connection) to terminate.
func (p *Process) Wait() error {
p.waitCall.Wait()
return p.waitCall.Err()
_, err := p.ExitCode()
return err
}

func (p *Process) waitBackground() {
Expand Down
163 changes: 0 additions & 163 deletions internal/hcs/callback.go

This file was deleted.

Loading