From 40d66629617f7a96b9005df356b94ab3b4dfb98f Mon Sep 17 00:00:00 2001 From: Wolfy-J Date: Sat, 5 Jan 2019 16:13:00 +0300 Subject: zend factory dependency elliminated --- osutil/isolate_win.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 osutil/isolate_win.go (limited to 'osutil/isolate_win.go') 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} +} -- cgit v1.2.3