Fix closing of outputfiles in droptcb()

This commit is contained in:
Wichert Akkerman 2002-04-03 10:55:14 +00:00
parent eb8ebdad12
commit 822f0c9a84

View File

@ -976,7 +976,7 @@ struct tcb *tcp;
tcp->parent = NULL;
}
if (outfname && tcp->outf)
if (outfname && followfork > 1 && tcp->outf)
fclose(tcp->outf);
tcp->outf = 0;