diff options
Diffstat (limited to 'com32/lib/onexit.c')
-rw-r--r-- | com32/lib/onexit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/com32/lib/onexit.c b/com32/lib/onexit.c index 70a9c01f..c9847927 100644 --- a/com32/lib/onexit.c +++ b/com32/lib/onexit.c @@ -12,11 +12,11 @@ static struct atexit *__atexit_list; static __noreturn on_exit_exit(int rv) { struct atexit *ap; - + for ( ap = __atexit_list ; ap ; ap = ap->next ) { ap->fctn(rv, ap->arg); /* This assumes extra args are harmless */ } - + _exit(rv); } |