diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2009-07-20 18:16:06 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2009-07-20 18:16:06 +0400 |
commit | 637a1aec8fba084c65b0afea3b49959917aaa253 (patch) | |
tree | 0a32adecd06f0588fa346109a821d5b033f35828 /winsup/cygwin/fork.cc | |
parent | 7bdb64ea18dbae79925d6a5dc69a665e8837982b (diff) |
* fork.cc (fork): Create local tmp_pathbuf. Explain why.
Diffstat (limited to 'winsup/cygwin/fork.cc')
-rw-r--r-- | winsup/cygwin/fork.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/winsup/cygwin/fork.cc b/winsup/cygwin/fork.cc index 6911da5cd..cdaaca649 100644 --- a/winsup/cygwin/fork.cc +++ b/winsup/cygwin/fork.cc @@ -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) { |