Re: [pygtk] pipe.read - interrupted system call what's the story?
On Fri, Dec 13, 2002 at 02:32:04PM -, Stephen Kennedy wrote: OK, I've produced a very small test case. The bug is only exhibited when gnome_program_init has been called. I'm guessing that the signal handlers are modified in a way that python does not like. Haven't had time to look into this after one month. Stephen, can you (or have you done so) file a bug on bugzilla.gnome.org for the problem? I asked the same question a week ago or something. I was receiving IOError, errno 4 when I was using pipe.readlines() together with pygtk. However the solution that solved my problem was to wait for the to finish before a was reading its output. I have actually never seen this problem using popen2 and read one line at the time. If you can give us a *small* testcase or futz a bit with gdb to find out we may have more luck debugging :-) Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
Re: [pygtk] pipe.read - interrupted system call what's the story?
On Fri, Dec 13, 2002 at 02:32:04PM -, Stephen Kennedy wrote: OK, I've produced a very small test case. The bug is only exhibited when gnome_program_init has been called. I'm guessing that the signal handlers are modified in a way that python does not like. Stephen. I asked the same question a week ago or something. I was receiving IOError, errno 4 when I was using pipe.readlines() together with pygtk. However the solution that solved my problem was to wait for the to finish before a was reading its output. I have actually never seen this problem using popen2 and read one line at the time. If you can give us a *small* testcase or futz a bit with gdb to find out we may have more luck debugging :-) Johan, could you reproduce this on your pygtk2 cvs install? Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
Re: [pygtk] pipe.read - interrupted system call what's the story?
On Fri, Dec 13, 2002 at 02:32:04PM -, Stephen Kennedy wrote: OK, I've produced a very small test case. The bug is only exhibited when gnome_program_init has been called. I'm guessing that the signal handlers are modified in a way that python does not like. Just as a data point, this works fine on a flat PyGTK (no gnome) app in 0.6.x CVS HEAD (with minor hacking so it runs of course). Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
RE: [pygtk] pipe.read - interrupted system call what's the story?
OK, I've produced a very small test case. The bug is only exhibited when gnome_program_init has been called. I'm guessing that the signal handlers are modified in a way that python does not like. Stephen. I asked the same question a week ago or something. I was receiving IOError, errno 4 when I was using pipe.readlines() together with pygtk. However the solution that solved my problem was to wait for the to finish before a was reading its output. I have actually never seen this problem using popen2 and read one line at the time. If you can give us a *small* testcase or futz a bit with gdb to find out we may have more luck debugging :-) eintr.py Description: eintr.py
Re: [pygtk] pipe.read - interrupted system call what's the story?
I asked the same question a week ago or something. I was receiving IOError, errno 4 when I was using pipe.readlines() together with pygtk. However the solution that solved my problem was to wait for the to finish before a was reading its output. I have actually never seen this problem using popen2 and read one line at the time. Øistein On Thu, 2002-12-12 at 20:32, Christian Reis wrote: On Thu, Dec 12, 2002 at 07:19:10PM +, Stephen Kennedy wrote: I've seen several threads in the pygtk archives over this point, but they've recieved no replies :( pygtk seems to do something strange which causes normal pipe reads to fail See: http://www.google.com/search?hl=enlr=ie=ISO-8859-1safe=offq=pygtk+interrupted+system+callbtnG=Google+Search If you can give us a *small* testcase or futz a bit with gdb to find out we may have more luck debugging :-) Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/ ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/