mirror of
https://github.com/rwinkhart/libmutton.git
synced 2026-10-26 22:09:56 -04:00
Fix Windows background processes dying with terminal window
This commit is contained in:
1 parent
2054f5b3cf
commit
f82b35bc43
1 file changed
+6
-2
@@ -2,8 +2,12 @@
|
|||||||
|
|
||||||
package global
|
package global
|
||||||
|
|
||||||
import "syscall"
|
import (
|
||||||
|
"syscall"
|
||||||
|
|
||||||
|
"golang.org/x/sys/windows"
|
||||||
|
)
|
||||||
|
|
||||||
func GetSysProcAttr() *syscall.SysProcAttr {
|
func GetSysProcAttr() *syscall.SysProcAttr {
|
||||||
return &syscall.SysProcAttr{CreationFlags: syscall.CREATE_NEW_PROCESS_GROUP}
|
return &syscall.SysProcAttr{CreationFlags: syscall.CREATE_NEW_PROCESS_GROUP | windows.DETACHED_PROCESS}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user