Skip to content

Commit

Permalink
child should inherit stdin
Browse files Browse the repository at this point in the history
  • Loading branch information
yaito3014 committed Sep 24, 2024
1 parent 2045c4f commit d5e2ce3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Command.cc
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ Command::spawn() const {

return Child(pid, stdoutPipe[0]);
} else {
return Child(pid, /* stdout */ 1);
return Child(pid, /* stdin */ 0);
}
}
}
Expand Down

0 comments on commit d5e2ce3

Please sign in to comment.