File tree 2 files changed +7
-8
lines changed 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change
1
+ 2017-05-12 Florian Weimer <
[email protected] >
2
+
3
+ [BZ #21386]
4
+ * sysdeps/nptl/fork.c (__libc_fork): Remove assertions on the
5
+ parent PID. The assertion in the child is incorrect with PID
6
+ namespaces.
7
+
1
8
2017-05-12 Joseph Myers <
[email protected] >
2
9
3
10
* sysdeps/unix/sysv/linux/kernel-features.h
Original file line number Diff line number Diff line change @@ -131,10 +131,6 @@ __libc_fork (void)
131
131
call_function_static_weak (__malloc_fork_lock_parent );
132
132
}
133
133
134
- #ifndef NDEBUG
135
- pid_t ppid = THREAD_GETMEM (THREAD_SELF , tid );
136
- #endif
137
-
138
134
#ifdef ARCH_FORK
139
135
pid = ARCH_FORK ();
140
136
#else
@@ -147,8 +143,6 @@ __libc_fork (void)
147
143
{
148
144
struct pthread * self = THREAD_SELF ;
149
145
150
- assert (THREAD_GETMEM (self , tid ) != ppid );
151
-
152
146
/* See __pthread_once. */
153
147
if (__fork_generation_pointer != NULL )
154
148
* __fork_generation_pointer += __PTHREAD_ONCE_FORK_GEN_INCR ;
@@ -230,8 +224,6 @@ __libc_fork (void)
230
224
}
231
225
else
232
226
{
233
- assert (THREAD_GETMEM (THREAD_SELF , tid ) == ppid );
234
-
235
227
/* Release acquired locks in the multi-threaded case. */
236
228
if (multiple_threads )
237
229
{
You can’t perform that action at this time.
0 commit comments