public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* PTRACE_ATTACH breaks wait4()
@ 2001-06-07 20:39 Pavel Kankovsky
  2001-06-08  6:19 ` Mike Coleman
  2001-06-08  8:47 ` David Howells
  0 siblings, 2 replies; 3+ messages in thread
From: Pavel Kankovsky @ 2001-06-07 20:39 UTC (permalink / raw)
  To: linux-kernel

Let A be a process and B its child. When another process, let's call
it C, does ptrace(PTRACE_ATTACH) on B, wait4(pid of B, ...) will always
return ECHILD when invoked from A after B has been attached to C because
wait4() does not take children traced by other processes into account.
The problem was observed on 2.2.19. I suppose it exists in 2.4 as well.

Apparently, I am not the first person who encountered this problem. See
<http://www.uwsg.indiana.edu/hypermail/linux/kernel/9901.3/0869.html>

--Pavel Kankovsky aka Peak  [ Boycott Microsoft--http://www.vcnet.com/bms ]
"Resistance is futile. Open your source code and prepare for assimilation."



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-06-08  8:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-06-07 20:39 PTRACE_ATTACH breaks wait4() Pavel Kankovsky
2001-06-08  6:19 ` Mike Coleman
2001-06-08  8:47 ` David Howells

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox