[issue6923] Need pthread_atfork-like functionality in CPython
Changes by Charles-François Natali cf.nat...@gmail.com: -- resolution: - duplicate stage: needs patch - committed/rejected status: open - closed superseder: - Add an 'atfork' module ___ 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
[issue6923] Need pthread_atfork-like functionality in CPython
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ 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
[issue6923] Need pthread_atfork-like functionality in CPython
Gregory P. Smith g...@krypto.org added the comment: For reference, this is related to http://bugs.python.org/issue6721 but deals with the C API side of things for an atfork mechanism to be used by extension modules. -- nosy: +gregory.p.smith ___ 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
[issue6923] Need pthread_atfork-like functionality in CPython
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