diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2020-03-07 20:27:20 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2020-03-07 20:27:20 +0100 |
commit | feb6d6f0a32e5dac88d1ef46bbc4396ec44ce40b (patch) | |
tree | 2321d2b0f5dddccfe332f8fa4816fd4075c2d1bd /sys/src/cmd/hjfs | |
parent | 225c359beab9e2f17c66e65647b9e0a94f942620 (diff) |
dossrv, 9660srv, hjfs: stop *READING* standard *OUTPUT* with -s flag
with the -s flag, we should read 9P messages from
standard *INPUT* (fd 0) and write responses to
standard *OUTPUT* (fd 1).
before these servers where reading from fd 1,
assuming they where both the same files.
Diffstat (limited to 'sys/src/cmd/hjfs')
-rw-r--r-- | sys/src/cmd/hjfs/9p.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/hjfs/9p.c b/sys/src/cmd/hjfs/9p.c index ac3535740..ffa4ba3bd 100644 --- a/sys/src/cmd/hjfs/9p.c +++ b/sys/src/cmd/hjfs/9p.c @@ -142,7 +142,7 @@ start9p(char *service, char **nets, int stdio) threadlistensrv(&mysrv, *nets++); } if(stdio){ - mysrv.infd = 1; + mysrv.infd = 0; mysrv.outfd = 1; srv(&mysrv); }else |