This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vitaly
Recipients Denis.Bilenko, hynek, ned.deily, neologix, ronaldoussoren, vitaly
Date 2012-09-11.07:44:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1347349446.98.0.496451846522.issue15896@psf.upfronthosting.co.za>
In-reply-to
Content
By the way, the existing code in subprocess.Popen (at least on 2.6.7) reads the pipe incorrectly: It doesn't loop to read all the data until EOF -- it only loops over EINTR until it gets a single successful os.read() call.  However, since this is a pipe read (not a real file read), the system doesn't guarantee that the blocking read will read everything up to requested read size or EOF, whichever comes first.  So, the single os.read call could return a partial read, and the subsequent un-pickling of the exception would fail.
History
Date User Action Args
2012-09-11 07:44:07vitalysetrecipients: + vitaly, ronaldoussoren, ned.deily, neologix, hynek, Denis.Bilenko
2012-09-11 07:44:06vitalysetmessageid: <1347349446.98.0.496451846522.issue15896@psf.upfronthosting.co.za>
2012-09-11 07:44:06vitalylinkissue15896 messages
2012-09-11 07:44:06vitalycreate