title: How can I kill off a gnome-terminal completely?
body: <p>I noticed when I do the following, the gnome-terminal simply goes into "Zombie State"</p>
  
  <pre><code>char *cmd = "kill &lt;pidofterminal&gt;"
  popen(cmd, "r");
  </code></pre>
  
  <p>Is there a way to completely kill off the program? I need it to release its PID.</p>