mirror of https://github.com/Hilbis/Hilbish
fix: use right procattr on correct os
parent
4a5e4957d7
commit
1522749397
2
exec.go
2
exec.go
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue