]> git.saurik.com Git - apple/libc.git/blame - stdlib/FreeBSD/exit.c.patch
Libc-339.tar.gz
[apple/libc.git] / stdlib / FreeBSD / exit.c.patch
CommitLineData
59e0d9fe
A
1--- exit.c.orig Wed Mar 10 14:20:34 2004
2+++ exit.c Wed Mar 10 14:38:14 2004
3@@ -46,26 +46,12 @@
9385eb3d
A
4 void (*__cleanup)();
5
6 /*
7- * This variable is zero until a process has created a thread.
8- * It is used to avoid calling locking functions in libc when they
9- * are not required. By default, libc is intended to be(come)
10- * thread-safe, but without a (significant) penalty to non-threaded
11- * processes.
12- */
13-int __isthreaded = 0;
14-
15-/*
16 * Exit, flushing stdio buffers if necessary.
17 */
18 void
59e0d9fe
A
19 exit(status)
20 int status;
9385eb3d 21 {
9385eb3d
A
22- /* Ensure that the auto-initialization routine is linked in: */
23- extern int _thread_autoinit_dummy_decl;
24-
25- _thread_autoinit_dummy_decl = 1;
59e0d9fe
A
26-
27 __cxa_finalize(NULL);
28 if (__cleanup)
29 (*__cleanup)();