Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Feb 1997 03:15:15 -0800
From:      Josh MacDonald <jmacd@CS.Berkeley.EDU>
To:        freebsd-hackers@freebsd.org
Subject:   more on killing traced processes
Message-ID:  <199702231115.DAA16417@paris.CS.Berkeley.EDU>

next in thread | raw e-mail | index | archive | help
Sorry for giving so little info.  Jordan replied off list
with an example of how not to show this behaviour, so I'll
provide an example.

Run gdb on /bin/cat:

Current directory is /bin/
GDB is free software and you are welcome to distribute copies of it
 under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for GDB; type "show warranty" for details.
GDB 4.16 (i386-unknown-freebsd), Copyright 1996 Free Software Foundation, Inc...
(no debugging symbols found)...
(gdb) run
Starting program: /bin/cat 

Program received signal SIGINT, Interrupt.
0xe7b5 in ?? ()
(gdb) kill
Kill the program being debugged? (y or n) y
(gdb) 

A second attempt to kill from gdb reports, "The program is not
being run."

Investigation from 'ps' output shows that the /bin/cat process is
still running, in the TX state.  Running "kill -9 PID" will not
kill the process.  Only when the parent exits can it die.

-josh



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199702231115.DAA16417>