From 15227493970b7e960073b61073a164f865d510ae Mon Sep 17 00:00:00 2001 From: TorchedSammy <38820196+TorchedSammy@users.noreply.github.com> Date: Sat, 21 May 2022 05:58:01 -0400 Subject: [PATCH] fix: use right procattr on correct os --- exec.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exec.go b/exec.go index ddd556d..83fcb15 100644 --- a/exec.go +++ b/exec.go @@ -360,7 +360,7 @@ func execHandle(bg bool) interp.ExecHandlerFunc { var j *job if bg { var procAttr *syscall.SysProcAttr - if runtime.GOOS != "windows" { + if runtime.GOOS == "windows" { procAttr = &syscall.SysProcAttr{ CreationFlags: syscall.CREATE_NEW_PROCESS_GROUP, }