Commit 84db9a59 authored by protolambda's avatar protolambda

cannon: do not use Go 1.20 feature yet

parent 69e67474
...@@ -167,7 +167,8 @@ func (p *ProcessPreimageOracle) Close() error { ...@@ -167,7 +167,8 @@ func (p *ProcessPreimageOracle) Close() error {
return nil return nil
} }
_ = p.cmd.Process.Signal(os.Interrupt) _ = p.cmd.Process.Signal(os.Interrupt)
p.cmd.WaitDelay = time.Second * 10 // Go 1.20 feature, to introduce later
//p.cmd.WaitDelay = time.Second * 10
err := p.cmd.Wait() err := p.cmd.Wait()
if err, ok := err.(*exec.ExitError); ok { if err, ok := err.(*exec.ExitError); ok {
if err.Success() { if err.Success() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment