Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84 +SENDMAIL+2.11; site dcl-cs.UUCP Path: utzoo!watmath!clyde!bonnie!akgua!gatech!seismo!mcvax!ukc!dcl-cs!stephen From: stephen@dcl-cs.UUCP (Stephen J. Muir) Newsgroups: net.unix-wizards Subject: Re: ptrace child after fork? Message-ID: <809@dcl-cs.UUCP> Date: Fri, 22-Nov-85 18:17:52 EST Article-I.D.: dcl-cs.809 Posted: Fri Nov 22 18:17:52 1985 Date-Received: Mon, 25-Nov-85 06:51:33 EST References: <755@rtech.UUCP> Reply-To: stephen@comp.lancs.ac.uk (Stephen J. Muir) Distribution: net Organization: Department of Computing at Lancaster University. Lines: 16 In article <755@rtech.UUCP> daveb@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@ucl-cs | Post: University of Lancaster, JANET: stephen@uk.ac.lancs.comp | Department of Computing, Phone: +44 524 65201 Ext. 4599 | Bailrigg, Lancaster, UK. Project:Alvey ECLIPSE Distribution | LA1 4YR