Make sure all internal file descriptors are closed when spawning children

darcs-hash:20051003130937-ac50b-95fb750b3c26f1c03a2a877770bbeee536ea3b74.gz
This commit is contained in:
axel
2005-10-03 23:09:37 +10:00
parent c39fed1f37
commit 101205900b
7 changed files with 193 additions and 38 deletions

9
env.c
View File

@@ -164,11 +164,10 @@ static int get_names_show_unexported;
/**
When fishd isn't started, this function is provided to
env_universal as a callback, it tries to start upå fishd. It's
implementation is a bit of a hack, since it just calls a bit of
shellscript, and the shell is not properly initialized ad this
point. Should be changed to deferr the evaluation until fish has
been properly initialized.
env_universal as a callback, it tries to start up fishd. It's
implementation is a bit of a hack, since it evaluates a bit of
shellscript, and it might be used at times when that might not be
the best idea.
*/
static void start_fishd()
{