Bug 114155 - [ptrace] sigsuspend gets interrupted by ptrace
Summary: [ptrace] sigsuspend gets interrupted by ptrace
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 7.0-CURRENT
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-30 14:20 UTC by michiel
Modified: 2017-08-26 03:47 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description michiel 2007-06-30 14:20:01 UTC
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
$