ptrace child after fork?

Stephen J. Muir stephen at dcl-cs.UUCP
Sat Nov 23 09:17:52 AEST 1985


In article <755 at rtech.UUCP> daveb at rtech.UUCP (Dave Brower) writes:
>So, the question is, should fork propagate ptrace?

I should say not.  How often is the process you're debugging another debugger?
Even if it was, it would get its child to do its own ptrace.

Suppose you wish to debug a process that forks other processes.  Now, the
process being debugged will do a wait(2).  If its child has stopped as a result
of the ptrace, then the "wait" will return something unexpected and the process
being debugged will get confused.  Think about it.
-- 
UUCP:	...!seismo!mcvax!ukc!dcl-cs!stephen
DARPA:	stephen%comp.lancs.ac.uk at ucl-cs	| Post: University of Lancaster,
JANET:	stephen at uk.ac.lancs.comp	|	Department of Computing,
Phone:	+44 524 65201 Ext. 4599		|	Bailrigg, Lancaster, UK.
Project:Alvey ECLIPSE Distribution	|	LA1 4YR



More information about the Comp.unix.wizards mailing list