[issue1068268] subprocess is not EINTR-safe

2010-01-23 Thread Nir Soffer
Changes by Nir Soffer : -- nosy: +nirs ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue1068268] subprocess is not EINTR-safe

2010-01-14 Thread David Oxley
David Oxley added the comment: Another instance of a blocking function within subprocess not being protected against EINTR Python 2.6.4, subprocess.py, Popen function, line 1115: data = os.read(errpipe_read, 1048576) # Exceptions limited to 1 MB If a signal arrives while blocked in this read

[issue1068268] subprocess is not EINTR-safe

2009-10-16 Thread Dave Malcolm
Changes by Dave Malcolm : -- nosy: +dmalcolm ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue1068268] subprocess is not EINTR-safe

2009-10-12 Thread Reid Kleckner
Changes by Reid Kleckner : -- nosy: +rnk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue1068268] subprocess is not EINTR-safe

2009-08-25 Thread R. David Murray
Changes by R. David Murray : -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue1068268] subprocess is not EINTR-safe

2009-08-12 Thread Chad Miller
Chad Miller added the comment: File "/home/cmiller/work/cabzr/desktopcouch/getport-at-call-time/desktopcouch/start_local_couchdb.py", line 93, in run_couchdb retcode = subprocess.call(local_exec) File "/usr/lib/python2.6/subprocess.py", line 444, in call return Popen(*popenargs, **kwar

[issue1068268] subprocess is not EINTR-safe

2009-03-24 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: -haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue1068268] subprocess is not EINTR-safe

2009-01-07 Thread STINNER Victor
STINNER Victor added the comment: Since Python 2.5 only accept security fixes, you should update your patch to Python trunk. ___ Python tracker ___ ___

[issue1068268] subprocess is not EINTR-safe

2008-12-24 Thread Matteo Bertini
Matteo Bertini added the comment: no EINTR patch upgraded to 25-maint r65475 that protects: *) all direct calls *) all returned fd I hope :P Added file: http://bugs.python.org/file12438/no-EINTR-subprocess.py-25-maint-r65475.patch ___ Python tracker

[issue1068268] subprocess is not EINTR-safe

2008-12-24 Thread Matteo Bertini
Changes by Matteo Bertini : Removed file: http://bugs.python.org/file11511/subprocess-eintr-safety-25maint-r65475.patch ___ Python tracker ___

[issue1068268] subprocess is not EINTR-safe

2008-12-24 Thread Matteo Bertini
Changes by Matteo Bertini : Removed file: http://bugs.python.org/file11818/subprocess-retry-on-EINTR-std-in-out-err.diff ___ Python tracker ___ ___

[issue1068268] subprocess is not EINTR-safe

2008-12-23 Thread STINNER Victor
STINNER Victor added the comment: Oh, the new patch (subprocess-retry-on-EINTR-std-in-out-err.diff) has already a generic function (_no_intr) which is a little bit different than mine (looks like a decorator). Can you delete your old patch? ___ Python track

[issue1068268] subprocess is not EINTR-safe

2008-12-23 Thread STINNER Victor
STINNER Victor added the comment: Instead of define a method for each "syscall", you can write a generic function that retry at OSError(EINTR): def no_intr(self, func, *args, **kw): while True: try: return func(*args, **kw) except OSError, e: if e.errno == errno.EINTR:

[issue1068268] subprocess is not EINTR-safe

2008-12-23 Thread Matteo Bertini
Matteo Bertini added the comment: Please have a look at the proposed patch: http://bugs.python.org/file11511/subprocess-eintr-safety-25maint- r65475.patch the list is more or less the patch itself. ___ Python tracker _

[issue1068268] subprocess is not EINTR-safe

2008-12-20 Thread Martin v. Löwis
Changes by Martin v. Löwis : -- versions: -Python 2.4, Python 2.5, Python 2.5.3 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue1068268] subprocess is not EINTR-safe

2008-12-20 Thread STINNER Victor
STINNER Victor added the comment: naufraghi> there are a lot of other places where EINTR naufraghi> can cause and error. Can you write a list of these places? ___ Python tracker ___

[issue1068268] subprocess is not EINTR-safe

2008-12-18 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue1068268] subprocess is not EINTR-safe

2008-12-18 Thread Matteo Bertini
Matteo Bertini added the comment: Python 2.5.3 is near but the I think the fix in http://svn.python.org/view?rev=65475&view=rev is not enough, there are a lot of other places where EINTR can cause and error. -- versions: +Python 2.5.3 ___ Python tra

[issue1068268] subprocess is not EINTR-safe

2008-10-17 Thread Matteo Bertini
Matteo Bertini <[EMAIL PROTECTED]> added the comment: Ups, forgot a _no_intr around select.select Index: subprocess.py === --- subprocess.py (revisione 19645) +++ subprocess.py (copia locale) @@ -1178,7 +1178,7 @@

[issue1068268] subprocess is not EINTR-safe

2008-10-17 Thread Matteo Bertini
Matteo Bertini <[EMAIL PROTECTED]> added the comment: Factorized try-except code, merged r65475 from 25-maint. Protetect std[in|out|err] read and write too. Added file: http://bugs.python.org/file11818/subprocess-retry-on-EINTR-std-in-out-err.diff ___ Python

[issue1068268] subprocess is not EINTR-safe

2008-09-17 Thread Matteo Bertini
Matteo Bertini <[EMAIL PROTECTED]> added the comment: Upgrade subprocess.py patch to 25-maint r65475 (apply cleanly with http://bugs.python.org/issue2113 fixed) -- keywords: +patch Added file: http://bugs.python.org/file11511/subprocess-eintr-safety-25maint-r65475.patch ___

[issue1068268] subprocess is not EINTR-safe

2008-09-06 Thread Gregory P. Smith
Gregory P. Smith <[EMAIL PROTECTED]> added the comment: its too late in the release process for subprocess internals being EINTR safe to make it into 2.6 but it is reasonable for 2.6.1. -- priority: low -> normal type: -> behavior versions: +Python 2.5, Python 2.6 _

[issue1068268] subprocess is not EINTR-safe

2008-09-05 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: Two remarks: 1 - The part of the patch around the call to select.select() is already in trunk since r64756, almost in the same form. good. 2 - the patch seems to replace all calls to os.write, os.read and os.waipid. But it is based on a

[issue1068268] subprocess is not EINTR-safe

2008-09-05 Thread Matteo Bertini
Matteo Bertini <[EMAIL PROTECTED]> added the comment: I'd like to suggest to rise the priority of this bug. Till this bus is around, no way using any module using subprocess.Popen form a PyQt app (and I suppose PyGtk and wxPython too). -- nosy: +naufraghi __

[issue1068268] subprocess is not EINTR-safe

2008-07-30 Thread Jesse Noller
Jesse Noller <[EMAIL PROTECTED]> added the comment: I think this should be resolved in 2.6/3.0 if possible. Especially if distributions like Ubuntu are self-patching the fix into place. For reference, see: http://mg.pov.lt/blog/subprocess-in-2.4 -- nosy: +jnoller _

[issue1068268] subprocess is not EINTR-safe

2008-07-07 Thread Gregory P. Smith
Gregory P. Smith <[EMAIL PROTECTED]> added the comment: fyi - To fix issue #2113 I added handling of a select.error errno.EINTR being raised during the select.select call in r64756. ___ Python tracker <[EMAIL PROTECTED]> _

[issue1068268] subprocess is not EINTR-safe

2008-04-01 Thread Jeffrey Yasskin
Jeffrey Yasskin <[EMAIL PROTECTED]> added the comment: I think the proper behavior on EINTR may depend on which subprocess call we're in. For example, the user can easily loop on .wait() herself if she wants to ignore EINTR. But it's a lot harder to loop on Popen() if the read() in _execute_child

[issue1068268] subprocess is not EINTR-safe

2008-04-01 Thread Gregory P. Smith
Changes by Gregory P. Smith <[EMAIL PROTECTED]>: -- nosy: +gregory.p.smith _ Tracker <[EMAIL PROTECTED]> _ ___ Python-bugs-list maili

[issue1068268] subprocess is not EINTR-safe

2008-04-01 Thread Ralf Schmitt
Ralf Schmitt <[EMAIL PROTECTED]> added the comment: Of course the signal handler may raise an exception, so my last argument isn't that good. _ Tracker <[EMAIL PROTECTED]> _

[issue1068268] subprocess is not EINTR-safe

2007-11-02 Thread Ralf Schmitt
Ralf Schmitt added the comment: In normal application code that signal.alarm is called for a reason. And the caller most probably expects it to interrupt the read calls. So I think the proposed patch is wrong. What was the signal interrupting the read calls? maybe SIGPIPE? -- nosy: +sc