diff options
author | Valery Piashchynski <[email protected]> | 2020-12-27 00:59:10 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-12-27 00:59:10 +0300 |
commit | 8df4896deabdab9a50a5ad3c6da6e1c7f05922af (patch) | |
tree | c2fa71733902b999c02e5abd608bff4bc7449c5c /utils/isolate_win.go | |
parent | 1aaf6e6ffb015cd5a21d9d938ad84c18723973c5 (diff) |
Util -> Utils
Diffstat (limited to 'utils/isolate_win.go')
-rwxr-xr-x | utils/isolate_win.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/utils/isolate_win.go b/utils/isolate_win.go new file mode 100755 index 00000000..b2b213a8 --- /dev/null +++ b/utils/isolate_win.go @@ -0,0 +1,17 @@ +// +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 +} |