How would you kill and restart a process in a C++ program on the Unix platform...Such as
if (pid == "/usr/sbin/in.named"
then
kill("/usr/sbin/in.named process"
Then attempt to restart the process. How would I go about running this in a C++ program on Unix.
if (pid == "/usr/sbin/in.named"
kill("/usr/sbin/in.named process"
Then attempt to restart the process. How would I go about running this in a C++ program on Unix.