[Qt-interest] QProcess not emitting readyRead for blocking processes
Thiago Macieira
thiago at kde.org
Tue Sep 7 19:04:22 CEST 2010
Em Terça-feira 07 Setembro 2010, às 17:11:39, Thiago Macieira escreveu:
> 2) modify the target application to force it to use line-buffering. Some
> tools have that option, others you may have to modify the source code.
> Add this to some place:
>
> setlinebuf(stdio); // BSD extension
> or
> setvbuf(stdio, (char *) NULL, _IOLBF, 0); /* ISO C */
Note that ssh has that option:
ssh -t
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Senior Product Manager - Nokia, Qt Development Frameworks
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100907/3336ac47/attachment.bin
More information about the Qt-interest-old
mailing list