[New-bugs-announce] [issue6923] Need pthread_atfork-like functionality in CPython

Thomas Wouters report at bugs.python.org
Wed Sep 16 22:03:14 CEST 2009


New submission from Thomas Wouters <thomas at python.org>:

In order to properly handle multiple threads and fork()-calls from C code 
(rather than os.fork()), Python should provide pthread_atfork()-like 
functionality: a function to call before a fork, to acquire any locks 
that need to be acquired, and a pair of functions to call after the fork, 
in the parent and the child, to release or re-allocate locks. The 
acquisitions should be re-entrant and should not require an existing 
threadstate. Also see <http://bugs.python.org/issue1590864>.

----------
assignee: twouters
components: Interpreter Core
messages: 92715
nosy: twouters
priority: low
severity: normal
stage: needs patch
status: open
title: Need pthread_atfork-like functionality in CPython
type: feature request

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6923>
_______________________________________


More information about the New-bugs-announce mailing list