]>
Commit | Line | Data |
---|---|---|
1 | --- exit.c.orig 2006-08-08 16:13:56.000000000 -0700 | |
2 | +++ exit.c 2006-08-11 22:12:56.000000000 -0700 | |
3 | @@ -44,15 +44,7 @@ | |
4 | #include "atexit.h" | |
5 | ||
6 | void (*__cleanup)(); | |
7 | - | |
8 | -/* | |
9 | - * This variable is zero until a process has created a thread. | |
10 | - * It is used to avoid calling locking functions in libc when they | |
11 | - * are not required. By default, libc is intended to be(come) | |
12 | - * thread-safe, but without a (significant) penalty to non-threaded | |
13 | - * processes. | |
14 | - */ | |
15 | -int __isthreaded = 0; | |
16 | +extern void __exit(int); | |
17 | ||
18 | /* | |
19 | * Exit, flushing stdio buffers if necessary. | |
20 | @@ -61,13 +53,8 @@ | |
21 | exit(status) | |
22 | int status; | |
23 | { | |
24 | - /* Ensure that the auto-initialization routine is linked in: */ | |
25 | - extern int _thread_autoinit_dummy_decl; | |
26 | - | |
27 | - _thread_autoinit_dummy_decl = 1; | |
28 | - | |
29 | __cxa_finalize(NULL); | |
30 | if (__cleanup) | |
31 | (*__cleanup)(); | |
32 | - _exit(status); | |
33 | + __exit(status); | |
34 | } |