[prev in list] [next in list] [prev in thread] [next in thread]
List: python-bugs-list
Subject: [issue5155] Multiprocessing.Queue created by sub-process fails when
From: report () bugs ! python ! org (Beau Butler)
Date: 2009-03-31 23:23:08
Message-ID: 1238541788.36.0.0241269106433.issue5155 () psf ! upfronthosting ! co ! za
[Download RAW message or body]
Beau Butler <beau.butler at gmail.com> added the comment:
Quick note: Have tracked this down to what appears to be buggy behaviour
on the part of os.pipe() when called from within a Process.
First invocation of os.pipe() in a Process returns (0,x) - stdin(?)
resulting in the 'bad file descriptor' error.
Interactive prompt test follows:
>>> import multiprocessing as MP, os
>>> def r(): print os.pipe(), os.pipe(), os.pipe()
...
>>> r()
(9, 10) (11, 12) (13, 14)
>>> MP.Process(target=r).start()
(0, 15) (16, 17) (18, 19)
>>> MP.Process(target=r).start()
(0, 15) (16, 17) (18, 19)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5155>
_______________________________________
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic