summaryrefslogtreecommitdiff
path: root/util/isolate_win.go
diff options
context:
space:
mode:
Diffstat (limited to 'util/isolate_win.go')
-rw-r--r--util/isolate_win.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/util/isolate_win.go b/util/isolate_win.go
new file mode 100644
index 00000000..77674b3b
--- /dev/null
+++ b/util/isolate_win.go
@@ -0,0 +1,17 @@
+// +build windows
+
+package util
+
+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}
+}
+
+func ExecuteFromUser(cmd *exec.Cmd, u string) error {
+ return nil
+} \ No newline at end of file