Commit e0a3f6a7 authored by inphi's avatar inphi

readd sleep before interrupt

parent 2029edb8
......@@ -188,6 +188,8 @@ func (p *ProcessPreimageOracle) Close() error {
if p.cmd == nil {
return nil
}
// Give the pre-image server time to exit cleanly before killing it.
time.Sleep(time.Second * 1)
_ = p.cmd.Process.Signal(os.Interrupt)
return <-p.waitErr
}
......
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