diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2009-11-06 16:34:30 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2009-11-06 16:34:30 -0800 |
commit | 2d9d9e5fb0fe70a195a74fd7a3f32f4ff5d22bf0 (patch) | |
tree | 6493a6d6fcc6654a25570a1f623a0d2c7436dece /match.c | |
parent | 3d38f312065003330f2f9c6f504f0e634ba2a5b6 (diff) | |
download | txr-2d9d9e5fb0fe70a195a74fd7a3f32f4ff5d22bf0.tar.gz txr-2d9d9e5fb0fe70a195a74fd7a3f32f4ff5d22bf0.tar.bz2 txr-2d9d9e5fb0fe70a195a74fd7a3f32f4ff5d22bf0.zip |
Throw exception on stream error during close, or I/O operations. This
is needed for pipes that terminate abnormally or return failed
termination. Pipe and stdio streams have an extra description field
so they are printed in a readable way.
Diffstat (limited to 'match.c')
-rw-r--r-- | match.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -683,9 +683,9 @@ obj_t *complex_snarf(fpip_t fp, obj_t *name) { switch (fp.close) { case fpip_fclose: - return lazy_stream_cons(make_stdio_stream(fp.f, t, nil)); + return lazy_stream_cons(make_stdio_stream(fp.f, name, t, nil)); case fpip_pclose: - return lazy_stream_cons(make_pipe_stream(fp.f, t, nil)); + return lazy_stream_cons(make_pipe_stream(fp.f, name, t, nil)); case fpip_closedir: return lazy_stream_cons(make_dir_stream(fp.d)); } |