(__fork): Now calls __flockfilelist before fork, and __funlockfilelist
authordrepper <drepper>
Wed, 7 Jun 2000 22:52:04 +0000 (22:52 +0000)
committerdrepper <drepper>
Wed, 7 Jun 2000 22:52:04 +0000 (22:52 +0000)
in the parent after the fork.  Child still calls __fresetlockfiles as
before.

linuxthreads/ptfork.c

index 440d66c..deb347f 100644 (file)
@@ -83,6 +83,7 @@ pid_t __fork(void)
 
   pthread_call_handlers(pthread_atfork_prepare);
   __pthread_once_fork_prepare();
+  __flockfilelist();
 
   pid = __libc_fork();
 
@@ -95,6 +96,7 @@ pid_t __fork(void)
 
     pthread_mutex_init(&pthread_atfork_lock, NULL);
   } else {
+    __funlockfilelist();
     __pthread_once_fork_parent();
     pthread_call_handlers(pthread_atfork_parent);