From 3a1078492ad9047b3a6ea6e8044263a6afe32248 Mon Sep 17 00:00:00 2001 From: Matt Mc <4984708+tooolbox@users.noreply.github.com> Date: Wed, 27 Mar 2024 19:22:53 -0700 Subject: [PATCH] Fix #14 by checking for syscall.EWINDOWS --- pie.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pie.go b/pie.go index 465b35b..943ad4c 100644 --- a/pie.go +++ b/pie.go @@ -7,6 +7,7 @@ import ( "net/rpc" "os" "os/exec" + "syscall" "time" ) @@ -229,7 +230,7 @@ var procTimeout = time.Second func (iop ioPipe) closeProc() error { result := make(chan error, 1) go func() { _, err := iop.proc.Wait(); result <- err }() - if err := iop.proc.Signal(os.Interrupt); err != nil { + if err := iop.proc.Signal(os.Interrupt); err != nil && err != syscall.EWINDOWS { return err } select {