Skip to content

Commit

Permalink
Set stdin in UpstreamProcess to os.Stdin (instead of /dev/null)
Browse files Browse the repository at this point in the history
Fixes #16
  • Loading branch information
3v0k4 committed Apr 15, 2024
1 parent f65d654 commit 0c45924
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/upstream_process.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ type UpstreamProcess struct {
}

func NewUpstreamProcess(name string, arg ...string) *UpstreamProcess {
cmd := exec.Command(name, arg...)
cmd.Stdin = os.Stdin
return &UpstreamProcess{
Started: make(chan struct{}, 1),
cmd: exec.Command(name, arg...),
cmd: cmd,
}
}

Expand Down

0 comments on commit 0c45924

Please sign in to comment.