Skip to content

Commit fb0e097

Browse files
committed
dpipe: Fixed open flags for alternate_stdout
1 parent 2770df4 commit fb0e097

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/dpipe.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ static void alternate_fd()
5757
{
5858
char numstr[10];
5959
alternate_stdin=open("/dev/null",O_RDONLY);
60-
alternate_stdout=open("/dev/null",O_RDONLY);
60+
alternate_stdout=open("/dev/null",O_WRONLY);
6161
close(alternate_stdin);
6262
close(alternate_stdout);
6363
snprintf(numstr,10,"%d",alternate_stdin);

0 commit comments

Comments
 (0)