diff options
author | Wolfy-J <[email protected]> | 2019-01-05 13:35:58 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2019-01-05 13:35:58 +0300 |
commit | 04f7ac73c477938b7390ec6ec101d0e4bcc8cd80 (patch) | |
tree | 361c8cd8a00824d0b2e5003c6a5978f630c20469 /server_config.go | |
parent | 46009112a783a1fdae95e0a061d4c8c41a1c8ff1 (diff) |
second set of patches
Diffstat (limited to 'server_config.go')
-rw-r--r-- | server_config.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server_config.go b/server_config.go index 199ce27b..35965962 100644 --- a/server_config.go +++ b/server_config.go @@ -3,6 +3,7 @@ package roadrunner import ( "errors" "fmt" + "github.com/spiral/roadrunner/osutil" "net" "os" "os/exec" @@ -75,8 +76,7 @@ func (cfg *ServerConfig) makeCommand() func() *exec.Cmd { var cmd = strings.Split(cfg.Command, " ") return func() *exec.Cmd { cmd := exec.Command(cmd[0], cmd[1:]...) - - cmd.SysProcAttr = &syscall.SysProcAttr{CreationFlags: syscall.CREATE_NEW_PROCESS_GROUP} + osutil.IsolateProcess(cmd) cmd.Env = append(os.Environ(), fmt.Sprintf("RR_RELAY=%s", cfg.Relay)) cmd.Env = append(cmd.Env, cfg.env...) |