diff options
Diffstat (limited to 'osutil/cmd_group_win.go')
-rw-r--r-- | osutil/cmd_group_win.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/osutil/cmd_group_win.go b/osutil/cmd_group_win.go new file mode 100644 index 00000000..ca7fca20 --- /dev/null +++ b/osutil/cmd_group_win.go @@ -0,0 +1,13 @@ +// +build windows + +package osutil + +import ( + "os/exec" + "syscall" +) + +// IsolateProcess change gpid for the process to avoid bypassing signals to php processes. +func IsolateProcess(cmd *exec.Cmd) { + cmd.SysProcAttr = &syscall.SysProcAttr{CreationFlags: syscall.CREATE_NEW_PROCESS_GROUP} +} |