After opening a pipe to a process with popen, is there a way to kill the process that has been started? (Using pclose is not what I want because th
popen
pclose
The obvious way is system("pkill process_name");
Clearly this is problematic if you have more than one instance of the process running.