axeld + bonefish:

BeOS R5's glue code incorrectly calls _thread_do_exit_notification()
when main() returns, while Haiku does that in exit(). Therefore when
terminating this way the exit hooks were called twice for executables
built under BeOS R5. This caused e.g. NetPositive or the R5 svn to
crash on exit (our network code actually uses those hooks).
Fixes bug #1742.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23975 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2008-02-17 14:12:02 +00:00
parent 2dd86b93a6
commit 392ad2822d
1 changed files with 2 additions and 0 deletions

View File

@ -113,6 +113,8 @@ _thread_do_exit_notification(void)
node = next;
}
tls_set(TLS_ON_EXIT_THREAD_SLOT, NULL);
}