mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
send output to fd instead of 0
This commit is contained in:
parent
5ce40ffdcf
commit
9d5979815d
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ main(int argc, char **argv)
|
||||||
sysfatal("fork: %r");
|
sysfatal("fork: %r");
|
||||||
case 0:
|
case 0:
|
||||||
while((n = read(0, buf, sizeof buf)) > 0)
|
while((n = read(0, buf, sizeof buf)) > 0)
|
||||||
if(write(0, buf, n) < 0)
|
if(write(fd, buf, n) < 0)
|
||||||
break;
|
break;
|
||||||
if(!waitforeof)
|
if(!waitforeof)
|
||||||
postnote(PNPROC, getppid(), "kill");
|
postnote(PNPROC, getppid(), "kill");
|
||||||
|
|
Loading…
Reference in a new issue