Added and implemented pthread_atfork().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9307 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
c0126bf6e4
commit
10031c3053
@ -1,9 +1,11 @@
|
|||||||
SubDir OBOS_TOP src kernel libroot posix pthread ;
|
SubDir OBOS_TOP src kernel libroot posix pthread ;
|
||||||
|
|
||||||
|
UsePrivateHeaders libroot ;
|
||||||
|
|
||||||
KernelMergeObject posix_pthread.o :
|
KernelMergeObject posix_pthread.o :
|
||||||
<$(SOURCE_GRIST)>pthread_mutex.c
|
pthread_atfork.c
|
||||||
<$(SOURCE_GRIST)>pthread_mutexattr.c
|
pthread_mutex.c
|
||||||
:
|
pthread_mutexattr.c
|
||||||
-fPIC -DPIC
|
: -fPIC -DPIC
|
||||||
;
|
;
|
||||||
|
|
||||||
|
16
src/kernel/libroot/posix/pthread/pthread_atfork.c
Normal file
16
src/kernel/libroot/posix/pthread/pthread_atfork.c
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
/*
|
||||||
|
** Copyright 2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
|
||||||
|
** Distributed under the terms of the Haiku License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#include <pthread.h>
|
||||||
|
#include <fork.h>
|
||||||
|
|
||||||
|
|
||||||
|
int
|
||||||
|
pthread_atfork(void (*prepare)(void), void (*parent)(void), void (*child)(void))
|
||||||
|
{
|
||||||
|
return __register_atfork(prepare, parent, child);
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user