aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/dial.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-02-11 16:42:48 +0000
committerrsc <devnull@localhost>2005-02-11 16:42:48 +0000
commit9d5979815db2a18db78a25037f46b42a93e4a659 (patch)
tree57a14d0774030d12feec60fc58012a38ed1c8e36 /src/cmd/dial.c
parent5ce40ffdcf49dcc19e613cba720dc8c1541a74e5 (diff)
downloadplan9port-9d5979815db2a18db78a25037f46b42a93e4a659.tar.gz
plan9port-9d5979815db2a18db78a25037f46b42a93e4a659.tar.bz2
plan9port-9d5979815db2a18db78a25037f46b42a93e4a659.zip
send output to fd instead of 0
Diffstat (limited to 'src/cmd/dial.c')
-rw-r--r--src/cmd/dial.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/dial.c b/src/cmd/dial.c
index c2b18f5f..e8e56902 100644
--- a/src/cmd/dial.c
+++ b/src/cmd/dial.c
@@ -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");