fix: use right procattr on correct os

extended-job-api
TorchedSammy 2022-05-21 05:58:01 -04:00
parent 4a5e4957d7
commit 1522749397
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 1 additions and 1 deletions

View File

@ -360,7 +360,7 @@ func execHandle(bg bool) interp.ExecHandlerFunc {
var j *job var j *job
if bg { if bg {
var procAttr *syscall.SysProcAttr var procAttr *syscall.SysProcAttr
if runtime.GOOS != "windows" { if runtime.GOOS == "windows" {
procAttr = &syscall.SysProcAttr{ procAttr = &syscall.SysProcAttr{
CreationFlags: syscall.CREATE_NEW_PROCESS_GROUP, CreationFlags: syscall.CREATE_NEW_PROCESS_GROUP,
} }