commit | c284ebe0ade7cc85ad6c3fe5ce7ed5108119222d | [log] [download] |
---|---|---|
author | nicm <nicm> | Thu Dec 12 11:39:56 2019 +0000 |
committer | nicm <nicm> | Thu Dec 12 11:39:56 2019 +0000 |
tree | 52fa29b04da1e5468bdce23cce61bf0370923c2e | |
parent | 64fb7e472a9e627ee486707ab9d30b607d76478a [diff] |
Rewrite the code for reading and writing files. Now, if the client is not attached, the server process asks it to open the file, similar to how works for stdin, stdout, stderr. This makes special files like /dev/fd/X work (used by some shells). stdin, stdout and stderr and control mode are now just special cases of the same mechanism. This will also make it easier to use for other commands that read files such as source-file.