[Qt-interest] QProcess could close the reading pipe, thus killing the child process with SIGPIPE

Thiago Macieira thiago.macieira at trolltech.com
Sun May 3 14:31:33 CEST 2009


Jan Kundrát wrote:
>So now I wonder if the Trolls could confirm that it's indeed a problem
>in QProcess, or that I'm misusing the class in a wrong way. I'd
>appreciate any response from people familiar with this code or a pointer
> about where to report this issue.

It's not a problem.

That slot should not be called unless there's something to be read. If 
there's a read of 0, that means the pipe has closed. So the code is right.

There should be no activation with 0 bytes except for the EOF. If there 
is, it's a bug in your operating system.
-- 
Thiago Macieira - thiago.macieira (AT) nokia.com
  Senior Product Manager - Nokia, Qt Software
      Sandakerveien 116, NO-0402 Oslo, Norway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090503/a12767bd/attachment.bin 


More information about the Qt-interest-old mailing list