Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
6e81d407
Commit
6e81d407
authored
Sep 27, 2016
by
Hallvard Furuseth
Browse files
ITS#8505 Protect parent from fork()-pthread_exit()
parent
eb1a307e
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/liblmdb/mdb.c
View file @
6e81d407
...
...
@@ -4429,7 +4429,11 @@ mdb_env_reader_dest(void *ptr)
{
MDB_reader
*
reader
=
ptr
;
reader
->
mr_pid
=
0
;
#ifndef _WIN32
if
(
reader
->
mr_pid
==
getpid
())
/* catch pthread_exit() in child process */
#endif
/* We omit the mutex, so do this atomically (i.e. skip mr_txnid) */
reader
->
mr_pid
=
0
;
}
#ifdef _WIN32
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment