diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-06-19 20:58:56 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-06-19 20:58:56 -0700 |
commit | 7c34d91f30e5a77bc12b811f6c836cea71905529 (patch) | |
tree | fc258b1dfe2bba95bc2b8efb78a48a2d5f5a7f8b /stream.h | |
parent | 36232eb7e1323832df24031957e647ca8675a2e9 (diff) | |
download | txr-7c34d91f30e5a77bc12b811f6c836cea71905529.tar.gz txr-7c34d91f30e5a77bc12b811f6c836cea71905529.tar.bz2 txr-7c34d91f30e5a77bc12b811f6c836cea71905529.zip |
streams: pipe streams not needed if we have fork.
* stream.c (se_pclose, make_pipe_stream): define only if
!HAVE_FORK_STUFF.
(pipe_close): Don't call se_pclose in HAVE_FORK_STUFF build.
The pipe_ops are no longer shared between popen pipes and
open-process pipes.
* stream.h (make_pipe_stream): Conditionally declare.
Diffstat (limited to 'stream.h')
-rw-r--r-- | stream.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -166,7 +166,9 @@ val errno_to_string(val err); val make_null_stream(void); val make_stdio_stream(FILE *, val descr); val make_tail_stream(FILE *, val descr); +#if !HAVE_FORK_STUFF val make_pipe_stream(FILE *, val descr); +#endif val stream_fd(val stream); #if HAVE_SOCKETS val make_sock_stream(FILE *f, val family, val type); |