aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-filter-search.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2003-12-01 23:51:25 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2003-12-01 23:51:25 +0800
commite71fb79458507f352ce121ab8a8e044324e016ef (patch)
treed397c8a5a21c05dae04389cc4e0c9fce316e7d4b /camel/camel-filter-search.c
parent2c1e306b97ef82b8576b542884702cb4487c6182 (diff)
downloadgsoc2013-evolution-e71fb79458507f352ce121ab8a8e044324e016ef.tar
gsoc2013-evolution-e71fb79458507f352ce121ab8a8e044324e016ef.tar.gz
gsoc2013-evolution-e71fb79458507f352ce121ab8a8e044324e016ef.tar.bz2
gsoc2013-evolution-e71fb79458507f352ce121ab8a8e044324e016ef.tar.lz
gsoc2013-evolution-e71fb79458507f352ce121ab8a8e044324e016ef.tar.xz
gsoc2013-evolution-e71fb79458507f352ce121ab8a8e044324e016ef.tar.zst
gsoc2013-evolution-e71fb79458507f352ce121ab8a8e044324e016ef.zip
Same.
2003-12-01 Jeffrey Stedfast <fejj@ximian.com> * camel-stream-process.c (do_exec_command): Same. * camel-process.c (camel_process_fork): Same. * camel-filter-search.c (run_command): Same as below. * camel-filter-driver.c (pipe_to_system): Same as below. * camel-gpg-context.c (gpg_ctx_op_start): Use fcntl() to set FD_CLOEXEC on each fd rather than close()ing it. Apparently Linux's older pthread implementations use sockets and so this fouls threading up. GO LINUX! GO! svn path=/trunk/; revision=23527
Diffstat (limited to 'camel/camel-filter-search.c')
-rw-r--r--camel/camel-filter-search.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/camel/camel-filter-search.c b/camel/camel-filter-search.c
index 5897239164..c90bda41a3 100644
--- a/camel/camel-filter-search.c
+++ b/camel/camel-filter-search.c
@@ -533,7 +533,7 @@ run_command (struct _ESExp *f, int argc, struct _ESExpResult **argv, FilterMessa
if (maxfd > 0) {
for (fd = 0; fd < maxfd; fd++) {
if (fd != STDIN_FILENO && fd != STDOUT_FILENO && fd != STDERR_FILENO)
- close (fd);
+ fcntl (fd, F_SETFD, FD_CLOEXEC);
}
}