diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2003-12-06 02:15:17 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2003-12-06 02:15:17 +0800 |
commit | 4df8998b86b5056b08d4ab622267304a3abc7ac0 (patch) | |
tree | b30450351407d3c7ad396dd7989ac3130093bac0 /camel/camel-filter-search.c | |
parent | 28d6afea597f3eaaa28915f6e9694814290adc8a (diff) | |
download | gsoc2013-evolution-4df8998b86b5056b08d4ab622267304a3abc7ac0.tar gsoc2013-evolution-4df8998b86b5056b08d4ab622267304a3abc7ac0.tar.gz gsoc2013-evolution-4df8998b86b5056b08d4ab622267304a3abc7ac0.tar.bz2 gsoc2013-evolution-4df8998b86b5056b08d4ab622267304a3abc7ac0.tar.lz gsoc2013-evolution-4df8998b86b5056b08d4ab622267304a3abc7ac0.tar.xz gsoc2013-evolution-4df8998b86b5056b08d4ab622267304a3abc7ac0.tar.zst gsoc2013-evolution-4df8998b86b5056b08d4ab622267304a3abc7ac0.zip |
Properly set the O_NONBLOCK flag along with any previously set flags.
2003-12-05 Jeffrey Stedfast <fejj@ximian.com>
* camel-gpg-context.c (gpg_ctx_op_start): Properly set the
O_NONBLOCK flag along with any previously set flags.
* camel-filter-search.c (run_command): Don't set O_NONBLOCK on the
pipe (1. we don't need to, and 2. we should have been setting
O_NONBLOCK|prev_flags but we weren't, and so the pipe got
O_RDONLY|O_NONBLOCK even tho we wanted to write to it).
* camel-filter-driver.c (pipe_to_system): Same.
svn path=/trunk/; revision=23651
Diffstat (limited to 'camel/camel-filter-search.c')
-rw-r--r-- | camel/camel-filter-search.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/camel/camel-filter-search.c b/camel/camel-filter-search.c index 42f04b0f22..53fe074b10 100644 --- a/camel/camel-filter-search.c +++ b/camel/camel-filter-search.c @@ -553,12 +553,10 @@ run_command (struct _ESExp *f, int argc, struct _ESExpResult **argv, FilterMessa /* parent process */ close (in_fds[0]); - fcntl (in_fds[1], F_SETFL, O_NONBLOCK); - - stream = camel_stream_fs_new_with_fd (in_fds[1]); message = camel_filter_search_get_message (fms, f); + stream = camel_stream_fs_new_with_fd (in_fds[1]); camel_data_wrapper_write_to_stream (CAMEL_DATA_WRAPPER (message), stream); camel_stream_flush (stream); camel_object_unref (stream); |