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:
parent
2dd86b93a6
commit
392ad2822d
@ -113,6 +113,8 @@ _thread_do_exit_notification(void)
|
||||
|
||||
node = next;
|
||||
}
|
||||
|
||||
tls_set(TLS_ON_EXIT_THREAD_SLOT, NULL);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user