diff options
author | Wolfy-J <[email protected]> | 2019-01-05 16:13:00 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2019-01-05 16:13:00 +0300 |
commit | 40d66629617f7a96b9005df356b94ab3b4dfb98f (patch) | |
tree | 9901e93d20d57affbdbc88963956c78586eb0b00 /osutil/isolate_win.go | |
parent | d890e973c45fbe53916304321f185ce940776bb7 (diff) |
zend factory dependency elliminated
Diffstat (limited to 'osutil/isolate_win.go')
-rw-r--r-- | osutil/isolate_win.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/osutil/isolate_win.go b/osutil/isolate_win.go new file mode 100644 index 00000000..ca7fca20 --- /dev/null +++ b/osutil/isolate_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} +} |