--nextPart9408015.ygnZlEOCP5 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Simon Perreault wrote: >On Saturday 15 April 2006 16:33, Ralf Habacker wrote: >> >>> for example to detect child process termination, >> >> >> >> not really. >> >> You mean closing of the pipe indicate process termination. > >No, the parent receives a SIGCHLD when a child dies. The pipe may be > closed by the child before its death if it wishes so. I'm not sure if everyone is discussing the same thing here. (and I'm not=20 sure of myself either). QProcess creates a pipe with FD_CLOEXEC. That means the pipe is closed=20 when the program is executed. However, if exec* failed, the child process=20 writes something to the pipe and then exits too, closing the pipe. That's the only way the parent process can tell if the execution succeeded= =20 or not: by checking if the pipe was written to. =2D-=20 Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org thiago.macieira (AT) trolltech.com Trolltech AS GPG: 0x6EF45358 | Sandakerveien 116, E067 918B B660 DBD1 105C | NO-0402 966C 33F5 F005 6EF4 5358 | Oslo, Norway --nextPart9408015.ygnZlEOCP5 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQBEQ3DXM/XwBW70U1gRAg7cAKDBNZuYqMW3+1H5ruiiAT/U6nGyIQCggM1y nNlk/UjLf3Quoe3xjyLL84c= =7oTa -----END PGP SIGNATURE----- --nextPart9408015.ygnZlEOCP5--