Qt-interest Archive, May 2008
Re: How to pause a QProcess
Message 1 in thread
Rekha Ravi Pai wrote:
> Hi,
>
> I have created a QProcess and this is starting a backend
> process. I want to pause and resume this process and also
> stop this process at some point of time. Can anybody
> suggest me how to do that?
>
> Regards,
> Rekha.
>
I never tried this. But maybe the following works?
#include <signal.h>
::kill(p.pid(), SIGSTOP);
::kill(p.pid(), SIGCONT);
Assuming p is of type QProcess and this is a POSIX-compliant OS.
A related question may be, whether QProcess is creating a new
process group or not. If it does, I would use -p.pid() to address
the whole process group.
--
[ signature omitted ]
begin:vcard
fn:Frank Mertens
n:Mertens;Frank
org:Cyblogic
adr:;;Anna-Siemsen-Str. 31;Jena;;07745;Germany
email;internet:frank@xxxxxxxxxxx
tel;work:+49 3641 295247
tel;cell:+49 17622390536
x-mozilla-html:FALSE
url:www.cyblogic.com
version:2.1
end:vcard
Message 2 in thread
Hi,
I have created a QProcess and this is starting a backend
process. I want to pause and resume this process and also
stop this process at some point of time. Can anybody
suggest me how to do that?
Regards,
Rekha.
--
[ signature omitted ]
Message 3 in thread
Didn't Franks suggestion work?
André
"Rekha Ravi Pai" <rekha@xxxxxxxxxxx> schreef in bericht
news:481FE696.3070200@xxxxxxxxxxxxxx
> Hi,
>
> I have created a QProcess and this is starting a backend
> process. I want to pause and resume this process and also
> stop this process at some point of time. Can anybody
> suggest me how to do that?
>
> Regards,
> Rekha.
>
> --
> --------------------------------------------------------------------------------
> Rekha Pai
> Software Consultant SoftJin Technologies Pvt. Ltd.
> #102, Mobius Tower, SJR I-Park, EPIP,
> Whitefield, Bangalore 560066
> Phone: +91-80-41779999
> Fax: +91-80-41157070
> --------------------------------------------------------------------------------
> This e-mail message and any files transmitted with it are intended
> solely for the use of the individual or entity to which they are
> addressed. It may contain confidential, proprietary or legally privileged
> information. If you are not the intended recipient please be advised that
> you have received this message in error and any use is strictly
> prohibited.
> Please immediately delete it and all copies of it from your system,
> destroy any hard copies of it and notify the sender by return mail. You
> must not, directly or indirectly, use, disclose, distribute, print, or
> copy any part of this message if you are not the intended recipient.
> ------------------------------------------------------------------------------
>
>
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
--
[ signature omitted ]