]> git.tue.mpg.de Git - paraslash.git/commitdiff
Do not call close_listed_fds() in para_exec().
authorAndre Noll <maan@systemlinux.org>
Mon, 7 Apr 2008 17:46:57 +0000 (19:46 +0200)
committerAndre Noll <maan@systemlinux.org>
Mon, 7 Apr 2008 17:46:57 +0000 (19:46 +0200)
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
exec.c

index 258591d61b09f9ebdbe627c471288728065da5dd..a974ddb8a7d02f402be5d72f79dc45d05a15f57e 100644 (file)
@@ -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 da7a3568ced41c0b2dc886bcffaa5793f7ca8fd1..86362c381fd8b3fe236caeddd4facec88130c901 100644 (file)
--- 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]);