Hei U can use kill(process id,9) to kill the process.
And use execlp("exe_name",(char*)0) to restart the exe named exe_name.But the exe shall be in u r PATH.
Good Luck
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.