From 402cb6dedfb3d271c7aab269ad9b79b04c21b62d Mon Sep 17 00:00:00 2001 From: "\"Steven J. Hill\"" Date: Sun, 15 Jan 2006 05:30:47 +0000 Subject: Clean up '_res' such that it will now work for, NPTL, linuxthreads and even no threads. Fix 'pthread_atfork' function and clean up duplicate of '__set_errno' that is not needed. --- .../nptl/sysdeps/unix/sysv/linux/register-atfork.c | 29 ---------------------- 1 file changed, 29 deletions(-) (limited to 'libpthread/nptl/sysdeps/unix/sysv/linux') diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/register-atfork.c b/libpthread/nptl/sysdeps/unix/sysv/linux/register-atfork.c index a3bb3c34c..18b9893d9 100644 --- a/libpthread/nptl/sysdeps/unix/sysv/linux/register-atfork.c +++ b/libpthread/nptl/sysdeps/unix/sysv/linux/register-atfork.c @@ -106,32 +106,3 @@ __register_atfork (prepare, parent, child, dso_handle) return newp == NULL ? ENOMEM : 0; } -hidden_def (__register_atfork) - - -#ifndef __UCLIBC__ -libc_freeres_fn (free_mem) -{ - /* Get the lock to not conflict with running forks. */ - lll_lock (__fork_lock); - - /* No more fork handlers. */ - __fork_handlers = NULL; - - /* Free eventually alloated memory blocks for the object pool. */ - struct fork_handler_pool *runp = fork_handler_pool.next; - - memset (&fork_handler_pool, '\0', sizeof (fork_handler_pool)); - - /* Release the lock. */ - lll_unlock (__fork_lock); - - /* We can free the memory after releasing the lock. */ - while (runp != NULL) - { - struct fork_handler_pool *oldp = runp; - runp = runp->next; - free (oldp); - } -} -#endif -- cgit v1.2.3