New submission from Thomas Wouters <tho...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue6923>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to