tsend output to fd instead of 0 - plan9port - [fork] Plan 9 from user space
HTML git clone git://src.adamsgaard.dk/plan9port
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 9d5979815db2a18db78a25037f46b42a93e4a659
DIR parent 5ce40ffdcf49dcc19e613cba720dc8c1541a74e5
HTML Author: rsc <devnull@localhost>
Date: Fri, 11 Feb 2005 16:42:48 +0000
send output to fd instead of 0
Diffstat:
M src/cmd/dial.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/src/cmd/dial.c b/src/cmd/dial.c
t@@ -45,7 +45,7 @@ main(int argc, char **argv)
sysfatal("fork: %r");
case 0:
while((n = read(0, buf, sizeof buf)) > 0)
- if(write(0, buf, n) < 0)
+ if(write(fd, buf, n) < 0)
break;
if(!waitforeof)
postnote(PNPROC, getppid(), "kill");