From owner-freebsd-hackers@FreeBSD.ORG Sat Nov 8 19:21:03 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D092016A4CE for ; Sat, 8 Nov 2003 19:21:03 -0800 (PST) Received: from pd4mo3so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id A766243FAF for ; Sat, 8 Nov 2003 19:21:02 -0800 (PST) (envelope-from bondc@shaw.ca) Received: from pd2mr2so.prod.shaw.ca (pd2mr2so-ser.prod.shaw.ca [10.0.141.109])2003))freebsd-hackers@freebsd.org; Sat, 08 Nov 2003 20:21:01 -0700 (MST) Received: from pn2ml2so.prod.shaw.ca (pn2ml2so-qfe0.prod.shaw.ca [10.0.121.146]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.18 (built Jul 28 2003)) with ESMTP id <0HO200K9NEN1A5@l-daemon> for freebsd-hackers@freebsd.org; Sat, 08 Nov 2003 20:21:01 -0700 (MST) Received: from muscle (h24-80-125-94.vf.shawcable.net [24.80.125.94]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.18 (built Jul 28 2003)) with SMTP id <0HO20064DEN1CG@l-daemon> for freebsd-hackers@freebsd.org; Sat, 08 Nov 2003 20:21:01 -0700 (MST) Date: Sat, 08 Nov 2003 19:28:48 -0800 From: Chris Bond To: freebsd-hackers@freebsd.org Message-id: <001501c3a671$96c712d0$5e7d5018@muscle> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Mailer: Microsoft Outlook Express 6.00.2800.1158 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7BIT X-Priority: 3 X-MSMail-priority: Normal Subject: ptrace reparenting with PT_ATTACH X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Nov 2003 03:21:03 -0000 Hello, I notice that when I attach to a process via ptrace(PT_ATTACH, ...), the process doing the tracing becomes the parent. The real parent can then no longer wait() for signals or anything, and may receive an ECHILD error if it attempts to do so. This seems like a bit of an oversight to me. Is there any way around it? Thanks, Chris Bond