[New-bugs-announce] [issue12981] rewrite multiprocessing (senfd|recvfd) in Python

Charles-François Natali report at bugs.python.org
Wed Sep 14 21:51:24 CEST 2011


New submission from Charles-François Natali <neologix at free.fr>:

Now that sendmsg()/recvmsg() are exposed in socketmodule, we could use them to replace the ad-hoc FD-passing routines used by multiprocessing.reduction.
Antoine suggested adding sendfd()/recvfd() methods to socket objects, but I'm not sure about this, since those only make sense for Unix domain sockets.
Two remarks on the patch attached:
- this removes sendfd()/recvfd() from _multiprocessing (but AFAICT those were never documented as part of the public API)
- EOF/invalid data received result in a RuntimeError

----------
components: Library (Lib)
files: multiprocessing_fd.diff
keywords: patch
messages: 144047
nosy: haypo, neologix
priority: normal
severity: normal
status: open
title: rewrite multiprocessing (senfd|recvfd) in Python
type: feature request
versions: Python 3.3
Added file: http://bugs.python.org/file23156/multiprocessing_fd.diff

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


More information about the New-bugs-announce mailing list