static void (*_libSystem_atfork_prepare)(void) = 0;
static void (*_libSystem_atfork_parent)(void) = 0;
static void (*_libSystem_atfork_child)(void) = 0;
static void (*_libSystem_atfork_prepare)(void) = 0;
static void (*_libSystem_atfork_parent)(void) = 0;
static void (*_libSystem_atfork_child)(void) = 0;
- _libSystem_atfork_prepare = prepare;
- _libSystem_atfork_parent = parent;
- _libSystem_atfork_child = child;
+ _libSystem_atfork_prepare = funcs->atfork_prepare;
+ _libSystem_atfork_parent = funcs->atfork_parent;
+ _libSystem_atfork_child = funcs->atfork_child;
// Reader beware: this __fork() call is yet another wrapper around the actual syscall
// and lives inside libsyscall. The fork syscall needs some cuddling by asm before it's
// allowed to see the big wide C world.
// Reader beware: this __fork() call is yet another wrapper around the actual syscall
// and lives inside libsyscall. The fork syscall needs some cuddling by asm before it's
// allowed to see the big wide C world.