]>
Commit | Line | Data |
---|---|---|
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 @@ | |
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 | |
19 | exit(status) | |
20 | int status; | |
21 | { | |
22 | - /* Ensure that the auto-initialization routine is linked in: */ | |
23 | - extern int _thread_autoinit_dummy_decl; | |
24 | - | |
25 | - _thread_autoinit_dummy_decl = 1; | |
26 | - | |
27 | __cxa_finalize(NULL); | |
28 | if (__cleanup) | |
29 | (*__cleanup)(); |