Skip to content

Commit

Permalink
fix(lifecycle): prevent signal forwarding
Browse files Browse the repository at this point in the history
  • Loading branch information
steebchen committed Feb 24, 2024
1 parent f4252f5 commit 4786b7d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions engine/lifecycle.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"os/exec"
"path"
"strings"
"syscall"
"time"

"github.com/joho/godotenv"
Expand Down Expand Up @@ -237,6 +238,10 @@ func (e *QueryEngine) spawn(file string) error {

e.cmd = exec.Command(file, "-p", port, "--enable-raw-queries")

e.cmd.SysProcAttr = &syscall.SysProcAttr{
Setpgid: true,
}

e.cmd.Stdout = os.Stdout

e.onEngineError = make(chan string)
Expand Down

0 comments on commit 4786b7d

Please sign in to comment.