diff options
Diffstat (limited to 'camel/camel-process.c')
-rw-r--r-- | camel/camel-process.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } } |