From owner-freebsd-questions@FreeBSD.ORG Fri Sep 14 13:25:26 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9632B16A481 for ; Fri, 14 Sep 2007 13:25:26 +0000 (UTC) (envelope-from tijl@ulyssis.org) Received: from mailrelay012.isp.belgacom.be (mailrelay012.isp.belgacom.be [195.238.6.179]) by mx1.freebsd.org (Postfix) with ESMTP id 48D2613C45E for ; Fri, 14 Sep 2007 13:25:25 +0000 (UTC) (envelope-from tijl@ulyssis.org) Received: from 68.27-245-81.adsl-dyn.isp.belgacom.be (HELO kalimero.kotnet.org) ([81.245.27.68]) by mailrelay012.isp.belgacom.be with ESMTP; 14 Sep 2007 15:25:24 +0200 X-Belgacom-Dynamic: yes Received: from kalimero.kotnet.org (kalimero.kotnet.org [127.0.0.1]) by kalimero.kotnet.org (8.14.1/8.14.1) with ESMTP id l8EDP3mY017917; Fri, 14 Sep 2007 15:25:04 +0200 (CEST) (envelope-from tijl@ulyssis.org) From: Tijl Coosemans To: freebsd-questions@freebsd.org Date: Fri, 14 Sep 2007 15:25:01 +0200 User-Agent: KMail/1.9.7 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200709141525.03523.tijl@ulyssis.org> Cc: Buganini Subject: Re: PT_PAUSE ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Sep 2007 13:25:26 -0000 On Thursday 13 September 2007 20:21:58 Buganini wrote: > I want to pause a ptraced process which had been PT_CONTINUE, > Can I just send SIGSTOP, or re-attach ? You can send a SIGSTOP using kill(2) and then wait for the process to actually stop using wait4(2).