I noticed when I do the following, the gnome-terminal simply goes into "Zombie State"
char *cmd = "kill <pidofterminal>"
popen(cmd, "r");
Is there a way to completely kill off the program? I need it to release its PID.
I noticed when I do the following, the gnome-terminal simply goes into "Zombie State"
char *cmd = "kill <pidofterminal>"
popen(cmd, "r");
Is there a way to completely kill off the program? I need it to release its PID.
You could specify -9
in kill command
char *cmd = "kill -9 <pidofterminal>"
popen(cmd, "r");
Run program under sudo or root:
sudo ./program
It will kill all processes you can kill.