PDA

View Full Version : How to send SIGINT to a process?



SYR
4th March 2011, 08:09
Hi to all
I am making GUI using QT3.3. Through GUI I am invoking a process using QProcess.
I want to send SIGINT(cntl+C) signal to that process.How can I send through GUI.
Can any one help me?

Jencek
4th March 2011, 08:23
Well, in unix environment you can allways use:


kill(pid_of_process,SIGINT)

Of course you need to make appropriate includes (unistd.h and signals.h I think).