aboutsummaryrefslogtreecommitdiffhomepage
path: root/helper/direct.go
diff options
context:
space:
mode:
authorOphestra Umiker <cat@ophivana.moe>2024-10-07 22:51:08 +0900
committerOphestra Umiker <cat@ophivana.moe>2024-10-07 22:51:08 +0900
commit3c5185d770859acc853cb09940d8345fa30b7f76 (patch)
tree58cccd5179ced6a73320b1c593c7e95b5d028d03 /helper/direct.go
parent55a5b6f242e7ca5f257a085c722f6cc9fa055b04 (diff)
helper: move test sample data out of direct
Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
Diffstat (limited to 'helper/direct.go')
-rw-r--r--helper/direct.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/helper/direct.go b/helper/direct.go
index 24f9e75d..91e40451 100644
--- a/helper/direct.go
+++ b/helper/direct.go
@@ -62,11 +62,11 @@ func (h *direct) Wait() error {
if h.Cmd.Process == nil {
return errors.New("exec: not started")
}
+ defer h.p.mustClosePipes()
if h.Cmd.ProcessState != nil {
return errors.New("exec: Wait was already called")
}
- defer h.p.mustClosePipes()
return h.Cmd.Wait()
}