Sending a Ctrl-C to a qprocess

Sohail Somani sohail at sohailsomani.com
Sun Sep 14 17:19:41 UTC 2003


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«



More information about the KDevelop mailing list