diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-06-15 21:19:01 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-06-15 21:19:01 -0700 |
commit | 79d832988eaa51f564eca913dec112e4df33593e (patch) | |
tree | b5332fad5ba7e0753675f1b2755eeebffd965420 /arith.c | |
parent | 5376b586a03b83a65f4cd40e7d982c9b8019c90a (diff) | |
download | txr-79d832988eaa51f564eca913dec112e4df33593e.tar.gz txr-79d832988eaa51f564eca913dec112e4df33593e.tar.bz2 txr-79d832988eaa51f564eca913dec112e4df33593e.zip |
subprocesses: don't bother saving descriptors.
* stream.c (fds_subst_nosave): New static function.
(fds_clobber): New static function. Like fds_swizzle,
without the saving.
(open_subprocess, run): Use fds_clobber instead of fds_swizzle
in the child process. It makes no sense to use fds_swizzle,
which saves duplicates of the old descriptors,
if fds_restore is not going to be called.
Diffstat (limited to 'arith.c')
0 files changed, 0 insertions, 0 deletions