Need to run and kill the process alternatively while pressing the command.
When i press the command again i need to kill the process, but it wont.
I started run the process using the following line
static const pid = 0;
When i trying to kill the process it wont.
I tried to stop the running process using close(), terminate() and kill(), but it seems to be not stopped and closing. I am using Qt 4.7.
I checked the process Id (pID) for the process which i am running. It shows the same processid for the every process which i am running again and again.It does not seems to be killed or stopped.
May i know how to kill the process.
Waiting for reply.