[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Child process not killed at logout
From: Thomas =?iso-8859-1?q?L=FCbking?= <thomas.luebking () web ! de>
Date: 2010-06-29 15:21:23
Message-ID: 201006291721.24183.thomas.luebking () web ! de
[Download RAW message or body]
QProcess::waitForFinished() has a timeout (30000ms by default), try calling
waitForFinished(-1);
Thomas
Am Tuesday 29 June 2010 schrieb Robin Atwood:
> I have an app which attaches a lot child processes using KProcess. When the
> application is closed by the user, the main class destructor essentially
> issues:
>
> myProc[k]->close();
> myProc[k]->waitForFinished();
>
> on each process. However, if I logout while the app is still running, the
> child processes are left running. After perusing the KMainWindow doc, I
> tried moving the code to "queryClose()" and also connecting to the
> "QCoreApplication::aboutToQuit()" signal, which both failed to close the
> processes. Note that the child processes are standard cli utilities which
> don't have an interactive mode to send shutdown commands to. Even a normal
> use close sometimes produces the message:
> QProcess: Destroyed while process is still running.
>
> The doc says that session management should call "queryClose()" at logout
> time but Qt is not waiting for it? Anybody have any insight into this?
>
> TIA
> -Robin
>
> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
> >> unsubscribe <<
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic