Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/root/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func (f *apiFlags) runAPICommand(cmd *cobra.Command, args []string) error {
// Monitor stdin for EOF to detect parent process death.
// Only enabled when --exit-on-stdin-eof flag is passed.
// When spawned with piped stdio, stdin closes when the parent process dies.
if f.exitOnStdinEOF && stdin != nil {
if f.exitOnStdinEOF {
var cancel context.CancelFunc
ctx, cancel = context.WithCancel(ctx)
defer cancel()
Expand Down
Loading