From 0dc44d54cfcc9dd3fa09a41136f35a9a8d26b994 Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Tue, 13 Oct 2020 13:55:20 +0300 Subject: Initial commit of RR 2.0 --- util/isolate_win.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 util/isolate_win.go (limited to 'util/isolate_win.go') 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 -- cgit v1.2.3