killing a process -- kill(id, SIGKILL);

Alexandre Oliva aoliva@redhat.com
Fri Sep 28 17:19:00 GMT 2001


On Sep 21, 2001, "Ivan Novick" <ivandn@abac.com> wrote:

> kill(id, SIGKILL);

> the process is still displayed when issuing the command ps -a except it says
> <defunct>

> Is this the best way to kill a process?

This mailing list is for help people get GCC working, not a general
Unix programming helpdesk.  Please use a more appropriate forum for
such questions next time.


<defunct> means the process was successfully killed.  The kernel is
just waiting for the parent process to collect the exit status of the
process with wait().

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me



More information about the Gcc-help mailing list