summaryrefslogtreecommitdiff
path: root/utils/isolate_win.go
diff options
context:
space:
mode:
Diffstat (limited to 'utils/isolate_win.go')
-rwxr-xr-xutils/isolate_win.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/utils/isolate_win.go b/utils/isolate_win.go
new file mode 100755
index 00000000..6b6d22e0
--- /dev/null
+++ b/utils/isolate_win.go
@@ -0,0 +1,18 @@
+//go:build windows
+// +build windows
+
+package utils
+
+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
+}