From owner-cvs-all@FreeBSD.ORG Sat Jan 10 09:41:05 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 86E1616A4CE; Sat, 10 Jan 2004 09:41:05 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id B951843D41; Sat, 10 Jan 2004 09:41:04 -0800 (PST) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i0AHf40B087788; Sat, 10 Jan 2004 09:41:04 -0800 (PST) (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i0AHf4u2087786; Sat, 10 Jan 2004 09:41:04 -0800 (PST) (envelope-from rwatson) Message-Id: <200401101741.i0AHf4u2087786@repoman.freebsd.org> From: Robert Watson Date: Sat, 10 Jan 2004 09:41:04 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libc/sys ptrace.2 X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Jan 2004 17:41:05 -0000 rwatson 2004/01/10 09:41:04 PST FreeBSD src repository Modified files: lib/libc/sys ptrace.2 Log: Clarify the behavior of ptrace(2) a little bit: the tracing process must first attach to the traced process. If the tracing process exits without detaching, the traced process will be killed rather than continued. For the duration of the tracing session, the traced process is reparented to the tracing process (with resulting expected behaviors). It is permissible to trace more than one other process at a time. When using waitpid() to monitor the behavior of the traced process, signals are intercepted: they may optionally then be forwarded using ptrace(). Signals are generated normally by and for the process, but also by the tracing facility (SIGTRAP). Product of: Suffering Sponsored by: DARPA, AFRL Revision Changes Path 1.34 +24 -0 src/lib/libc/sys/ptrace.2