From e71fb79458507f352ce121ab8a8e044324e016ef Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Mon, 1 Dec 2003 15:51:25 +0000 Subject: Same. 2003-12-01 Jeffrey Stedfast * 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 --- camel/camel-process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'camel/camel-process.c') diff --git a/camel/camel-process.c b/camel/camel-process.c index 01c1e3be3d..9e2d9657dd 100644 --- a/camel/camel-process.c +++ b/camel/camel-process.c @@ -81,7 +81,7 @@ camel_process_fork (const char *path, char **argv, int *infd, int *outfd, int *e if ((maxfd = sysconf (_SC_OPEN_MAX)) > 0) { for (i = 0; i < maxfd; i++) { if (i != STDIN_FILENO && i != STDOUT_FILENO && i != STDERR_FILENO) - close (i); + fcntl (i, F_SETFD, FD_CLOEXEC); } } -- cgit v1.2.3