summaryrefslogtreecommitdiff
path: root/server_config.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2019-01-05 13:35:58 +0300
committerWolfy-J <[email protected]>2019-01-05 13:35:58 +0300
commit04f7ac73c477938b7390ec6ec101d0e4bcc8cd80 (patch)
tree361c8cd8a00824d0b2e5003c6a5978f630c20469 /server_config.go
parent46009112a783a1fdae95e0a061d4c8c41a1c8ff1 (diff)
second set of patches
Diffstat (limited to 'server_config.go')
-rw-r--r--server_config.go4
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...)