From nobody@FreeBSD.org  Sat Jun 30 13:14:38 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 89CC316A41F
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 30 Jun 2007 13:14:38 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id 6185F13C448
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 30 Jun 2007 13:14:38 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l5UDEcoo054599
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 30 Jun 2007 13:14:38 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id l5UDEbOI054597;
	Sat, 30 Jun 2007 13:14:37 GMT
	(envelope-from nobody)
Message-Id: <200706301314.l5UDEbOI054597@www.freebsd.org>
Date: Sat, 30 Jun 2007 13:14:37 GMT
From: Michiel Boland <michiel@boland.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: sigsuspend gets interrupted by ptrace
X-Send-Pr-Version: www-3.0

>Number:         114155
>Category:       kern
>Synopsis:       [ptrace] sigsuspend gets interrupted by ptrace
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun 30 13:20:01 GMT 2007
>Closed-Date:    
>Last-Modified:  Sat Jun 30 21:35:17 GMT 2007
>Originator:     Michiel Boland
>Release:        FreeBSD 7.0-CURRENT amd64
>Organization:
>Environment:
FreeBSD aja.boland.org 7.0-CURRENT FreeBSD 7.0-CURRENT #1: Fri Jun 29 02:55:35 CEST 2007     root@aja.boland.org:/usr/obj/usr/src/sys/AJA  amd64
>Description:
The sigsuspend() system call gets interrupted when
another process attaches itself via ptrace.

>How-To-Repeat:
#include
<unistd.h>

int main(void)
{
        pause();
        return 0;
}
 
$ ./a.out &
$ truss -p `pgrep a.out`
process exit, rval = 0  
[1]   Done                    ./a.out
$

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:
