* fork.cc (fork): Create local tmp_pathbuf. Explain why.

This commit is contained in:
Corinna Vinschen
2009-07-20 14:16:06 +00:00
parent 7bdb64ea18
commit 637a1aec8f
2 changed files with 9 additions and 0 deletions

View File

@@ -580,6 +580,11 @@ fork ()
{
hold_everything held_everything (ischild);
/* This tmp_pathbuf constructor is required here because the below setjmp
magic will otherwise not restore the original buffer count values in
the thread-local storage. A process forking too deeply will run into
the problem to be out of temporary TLS path buffers. */
tmp_pathbuf tp;
if (!held_everything)
{