From 86a605e4502fda6ef7fcac4cdf9f765d86438413 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 7 Apr 2008 19:46:57 +0200 Subject: [PATCH] Do not call close_listed_fds() in para_exec(). para_fade and para_gui, the only two users of exec.o, do not care about the close on fork list. So do not link close_on_fork.o into these executables. --- configure.ac | 4 ++-- exec.c | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 258591d6..a974ddb8 100644 --- a/configure.ac +++ b/configure.ac @@ -139,12 +139,12 @@ fsck_cmdline_objs="fsck.cmdline" fsck_errlist_objs="osl rbtree fsck string sha1 fd" gui_cmdline_objs="gui.cmdline" -gui_errlist_objs="exec close_on_fork signal string stat ringbuffer fd" +gui_errlist_objs="exec signal string stat ringbuffer fd" gui_other_objs="gui gui_theme" gui_objs="$gui_cmdline_objs $gui_errlist_objs $gui_other_objs" fade_cmdline_objs="fade.cmdline" -fade_errlist_objs="fade exec close_on_fork string fd" +fade_errlist_objs="fade exec string fd" diff --git a/exec.c b/exec.c index da7a3568..86362c38 100644 --- a/exec.c +++ b/exec.c @@ -49,7 +49,6 @@ static int para_exec(pid_t *pid, const char *file, char *const *const args, int } *pid = ret; if (!(*pid)) { /* child */ - close_listed_fds(); /* close unneeded fds */ if (fds[0] >= 0) { if (fds[0]) { close(in[1]); -- 2.39.5