Skip to content

Commit 2289628

Browse files
Merge pull request #18 from 3v0k4/fix-stdin
Set `stdin` in `UpstreamProcess` to `os.Stdin` (instead of `/dev/null`)
2 parents 08e70b0 + 4a0fec8 commit 2289628

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/upstream_process.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ func NewUpstreamProcess(name string, arg ...string) *UpstreamProcess {
2222
}
2323

2424
func (p *UpstreamProcess) Run() (int, error) {
25+
p.cmd.Stdin = os.Stdin
2526
p.cmd.Stdout = os.Stdout
2627
p.cmd.Stderr = os.Stderr
2728

0 commit comments

Comments
 (0)