From kde-devel Sat Apr 30 19:34:29 2005 From: Frans Englich Date: Sat, 30 Apr 2005 19:34:29 +0000 To: kde-devel Subject: Solved [Re: kdDebug stalls in arbitrary situations] Message-Id: <200504301934.29021.frans.englich () telia ! com> X-MARC-Message: https://marc.info/?l=kde-devel&m=111488922414196 FYI, On Friday 29 April 2005 07:50, Stephan Kulow wrote: > Am Freitag 29 April 2005 01:49 schrieb David Faure: > > Looks just like a program that is piped into another, and the other one > > doesn't read from the pipe. So IMHO it's a bug in the python-script side. > > Yes, either you read from the pipe or you close it. There is no other way. The most logical source of cause, as David points out, is the Python script since that's the factory which actually enables the error. I, foolishly, looked at another direction. The cause was that the Python script read the pipes sequentally, first stdout and then stderr(which is a bad approach, yes). Mostly stdout closed before stderr required a read; in the cases it didn't, it blocked, naturally.. Thanks, Frans >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<