summaryrefslogtreecommitdiff
path: root/utils/isolate_win.go
blob: 6b6d22e034b0ca5fb0e57dbd8c7cb415501236c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
}