diff options
author | rsc <devnull@localhost> | 2005-02-11 16:42:48 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-02-11 16:42:48 +0000 |
commit | 9d5979815db2a18db78a25037f46b42a93e4a659 (patch) | |
tree | 57a14d0774030d12feec60fc58012a38ed1c8e36 /src/cmd/dial.c | |
parent | 5ce40ffdcf49dcc19e613cba720dc8c1541a74e5 (diff) | |
download | plan9port-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.c | 2 |
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"); |