about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2017-06-09 13:21:43 +0200
committerFlorian Weimer <fweimer@redhat.com>2017-06-09 13:21:43 +0200
commitb8d2e394a2900cef5bbbe0503f15960f64a943b1 (patch)
treef06ad146a222f9db21064a1e0df02151e9a2780e /sysdeps
parent34b6f41c14d09fe627c6a6224880d76d0959079e (diff)
downloadglibc-b8d2e394a2900cef5bbbe0503f15960f64a943b1.tar.gz
glibc-b8d2e394a2900cef5bbbe0503f15960f64a943b1.tar.xz
glibc-b8d2e394a2900cef5bbbe0503f15960f64a943b1.zip
fork: Remove bogus parent PID assertions [BZ #21386]
(cherry picked from commit 1d2bc2eae969543b89850e35e532f3144122d80a)
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/nptl/fork.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/sysdeps/nptl/fork.c b/sysdeps/nptl/fork.c
index db6d721fce..4bb87e2331 100644
--- a/sysdeps/nptl/fork.c
+++ b/sysdeps/nptl/fork.c
@@ -131,10 +131,6 @@ __libc_fork (void)
       call_function_static_weak (__malloc_fork_lock_parent);
     }
 
-#ifndef NDEBUG
-  pid_t ppid = THREAD_GETMEM (THREAD_SELF, tid);
-#endif
-
 #ifdef ARCH_FORK
   pid = ARCH_FORK ();
 #else
@@ -147,8 +143,6 @@ __libc_fork (void)
     {
       struct pthread *self = THREAD_SELF;
 
-      assert (THREAD_GETMEM (self, tid) != ppid);
-
       /* See __pthread_once.  */
       if (__fork_generation_pointer != NULL)
 	*__fork_generation_pointer += __PTHREAD_ONCE_FORK_GEN_INCR;
@@ -230,8 +224,6 @@ __libc_fork (void)
     }
   else
     {
-      assert (THREAD_GETMEM (THREAD_SELF, tid) == ppid);
-
       /* Release acquired locks in the multi-threaded case.  */
       if (multiple_threads)
 	{