mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-31 16:35:28 +00:00
libc: call 'genode_exit()' in '_exit()'
With this patch the libc '_exit()' function calls the 'genode_exit()' function to get the registered exit handlers called. Fixes #308.
This commit is contained in:
parent
23f11a4dca
commit
4caaba64c3
@ -15,10 +15,11 @@
|
||||
#include <base/sleep.h>
|
||||
#include <base/printf.h>
|
||||
|
||||
extern void genode_exit(int status) __attribute__((noreturn));
|
||||
|
||||
extern "C" void _exit(int status)
|
||||
{
|
||||
Genode::env()->parent()->exit(status);
|
||||
Genode::sleep_forever();
|
||||
genode_exit(status);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user