summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--eglib/gmain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eglib/gmain.c b/eglib/gmain.c
index a2c095f3..5be81a3c 100644
--- a/eglib/gmain.c
+++ b/eglib/gmain.c
@@ -722,7 +722,7 @@ static void exec_child(const gchar *working_directory,
ret = 0;
open_max = sysconf(_SC_OPEN_MAX);
- for (fd = 0; fd < open_max && ret == 0; fd++)
+ for (fd = 3; fd < open_max && ret == 0; fd++)
ret = fcntl(fd, F_SETFD, FD_CLOEXEC);
}