Review Request: Fix hang in kcm_useraccount

Michael Palimaka kensington at gentoo.org
Sat Aug 11 18:42:43 BST 2012


On 2012-08-11 05:22, Rolf Eike Beer wrote
> And after the readLine() you have valid input? And you are sure your new
> branch is taken?
>
> Eike
>
It seems it is the block parameter that makes all the difference:

Test::Test(biol block) {
         QByteArray line;
         QList<QByteArray> args;
         args += "2012";

         KDESu::PtyProcess::exec("cal", args);

         readAll(block);
         line = readLine();
         if (line.isEmpty())
                 printf("empty");
         else
                 printf("data");
}

void foo() {
         Test *test;
         test = new Test(true);
         test = new Test(false);
}

gives "empty data".


Best regards,
Michael




More information about the kde-core-devel mailing list