summaryrefslogtreecommitdiffstats
path: root/eglib
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-01-21 21:47:57 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-01-21 21:47:57 +0000
commitccf289e82013b0eedd2fc35433e104aa53e042be (patch)
tree6533a0ad83074b0ddc2e6b5acc803fee0ad0a030 /eglib
parente224857e7d7875ee9e2e306d4b8fafad94d2a967 (diff)
Excplicitly close only fd's > 2
Diffstat (limited to 'eglib')
-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);
}