summaryrefslogtreecommitdiff
path: root/libpthread/linuxthreads.old/ptfork.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-01-25 14:59:17 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-01-25 14:59:17 +0000
commit8532ba12c656528617fe86945c64626b1a815280 (patch)
tree13435dd3e306a434a44ad588247ce7a256b8b341 /libpthread/linuxthreads.old/ptfork.c
parentc7ccb6638aa40e5425c8c773d78d51df9d59d419 (diff)
make use of the internals provided earlier
Diffstat (limited to 'libpthread/linuxthreads.old/ptfork.c')
-rw-r--r--libpthread/linuxthreads.old/ptfork.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libpthread/linuxthreads.old/ptfork.c b/libpthread/linuxthreads.old/ptfork.c
index b153621b2..38fb60e9d 100644
--- a/libpthread/linuxthreads.old/ptfork.c
+++ b/libpthread/linuxthreads.old/ptfork.c
@@ -61,14 +61,14 @@ int pthread_atfork(void (*prepare)(void),
struct handler_list_block * block =
(struct handler_list_block *) malloc(sizeof(struct handler_list_block));
if (block == NULL) return ENOMEM;
- pthread_mutex_lock(&pthread_atfork_lock);
+ __pthread_mutex_lock(&pthread_atfork_lock);
/* "prepare" handlers are called in LIFO */
pthread_insert_list(&pthread_atfork_prepare, prepare, &block->prepare, 0);
/* "parent" handlers are called in FIFO */
pthread_insert_list(&pthread_atfork_parent, parent, &block->parent, 1);
/* "child" handlers are called in FIFO */
pthread_insert_list(&pthread_atfork_child, child, &block->child, 1);
- pthread_mutex_unlock(&pthread_atfork_lock);
+ __pthread_mutex_unlock(&pthread_atfork_lock);
return 0;
}
//strong_alias (__pthread_atfork, pthread_atfork)
@@ -85,11 +85,11 @@ pid_t attribute_hidden __fork(void)
pid_t pid;
struct handler_list * prepare, * child, * parent;
- pthread_mutex_lock(&pthread_atfork_lock);
+ __pthread_mutex_lock(&pthread_atfork_lock);
prepare = pthread_atfork_prepare;
child = pthread_atfork_child;
parent = pthread_atfork_parent;
- pthread_mutex_unlock(&pthread_atfork_lock);
+ __pthread_mutex_unlock(&pthread_atfork_lock);
pthread_call_handlers(prepare);
pid = __libc_fork();
if (pid == 0) {