From 583e78b7271cdb15f67efd97dd394644507e5baf Mon Sep 17 00:00:00 2001 From: valoq Date: Thu, 11 Jun 2026 05:00:44 +0200 Subject: [PATCH] fix: close pipe file handles (#2606) --- app.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app.go b/app.go index 85ff36fc..82633cc9 100644 --- a/app.go +++ b/app.go @@ -614,7 +614,8 @@ func (app *app) runShell(s string, args []string, prefix string) { // read before calling [exec.Cmd.Wait], however in this case Cmd.Wait should // only wait for the command to finish executing regardless of whether the // output has been fully read or not. - inReader, inWriter, err := os.Pipe() + var err error + inReader, inWriter, err = os.Pipe() if err != nil { log.Printf("creating input pipe: %s", err) return