Sending a Ctrl-C to a qprocess

Gunther Piez gpiez at web.de
Mon Sep 15 08:25:24 BST 2003


On Sunday 14 September 2003 23:23, Cornelius Kölbel wrote:

try 

#include <sys/types.h>
#include <signal.h>
kill(pid, sig);

and man 2 kill

Gunther

> Well, I am not that great programmer!
>
> Any hints are welcome!
>
> Sohail Somani wrote:
> >Arent there any kernel calls that would be preferred? I dislike doing
> >system("..."); I'm just wondering of course
> >
> >On Sun, 2003-09-14 at 03:41, Cornelius Kölbel wrote:
> >>Well,
> >>i did not write the process, that expects the Ctrl-C. It is an external
> >>program.
> >>
> >>But this worked
> >>
> >>system("kill -SIGINT <pid>");
> >>
> >>Regards
> >>Cornelius
> >>
> >>Bryan, Bill wrote:
> >>>How about a special string that says to stop the process.
> >>>Not <cntr>c, but how about 'stop', 'cntrc', 'brakes'.
> >>>
> >>>-----Original Message-----
> >>>From: Cornelius Kölbel [mailto:cornelius.koelbel at gmx.de]
> >>>Sent: Tuesday, September 09, 2003 1:51 PM
> >>>To: kdevelop at kdevelop.org
> >>>Subject: Re: Sending a Ctrl-C to a qprocess
> >>>
> >>>
> >>>The usual kill-command does not stop the process.
> >>>(cdrdao -process)
> >>>
> >>>But maybe I can experiment with some more signals.
> >>>
> >>>Regards
> >>>Cornelius
> >>>
> >>>Caleb Tennis wrote:
> >>>>I think instead you may want to invoke the "kill" command on that
> >>>> process,
> >>>
> >>>or
> >>>
> >>>>look into sending a SIGINT to it.
> >>>>
> >>>>On Tuesday 09 September 2003 10:48 am, you wrote:
> >>>>>Hello,
> >>>>>
> >>>>>maybe it is not realy the correct list.
> >>>>>But maybe someone can answer this question quickly:
> >>>>>
> >>>>>I have to send the Ctrl-C to a qprocess. I thought of using the
> >>>>>QProcess->writeToStdin function.
> >>>>>But how does the "Ctrl-C" look as a QString?
> >>>>>
> >>>>>Regards
> >>>>>Cornelius
> >>>>>
> >>>>>
> >>>>>
> >>>>>-
> >>>>>to unsubscribe from this list send an email to
> >>>>>kdevelop-request at kdevelop.org with the following body: unsubscribe
> >>>>>»your-email-address«
> >>>>
> >>>>-
> >>>>to unsubscribe from this list send an email to
> >>>
> >>>kdevelop-request at kdevelop.org with the following body:
> >>>>unsubscribe »your-email-address«
> >>>
> >>>-
> >>>to unsubscribe from this list send an email to
> >>> kdevelop-request at kdevelop.org with the following body:
> >>>unsubscribe »your-email-address«
> >>>
> >>>-
> >>>to unsubscribe from this list send an email to
> >>> kdevelop-request at kdevelop.org with the following body: unsubscribe
> >>> »your-email-address«
> >>
> >>-
> >>to unsubscribe from this list send an email to
> >> kdevelop-request at kdevelop.org with the following body: unsubscribe
> >> »your-email-address«
> >
> >-
> >to unsubscribe from this list send an email to
> > kdevelop-request at kdevelop.org with the following body: unsubscribe
> > ?your-email-address?
>
> -
> to unsubscribe from this list send an email to
> kdevelop-request at kdevelop.org with the following body: unsubscribe
> your-email-address


-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list