[lkml]   [1998]   [Mar]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectWait on ptraced child process and other questions
When a process waits on a child process, and this process is ptraced
what is the correct behaviour, to wait on the child or return an
error? The current behaviour is to returns ECHILD while the child is

The reason for this is how ptrace works, which is by changing the
parent of the process to the ptracing process. The process waiting
will therefore not see its child as a real child and returns ECHILD.

Could someone explain briefly why the parent process of the ptraced
process must be changed?


Alexander Kjeldaas, Guardian Networks AS, Trondheim, Norway

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to

 \ /
  Last update: 2005-03-22 13:41    [W:0.025 / U:0.692 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site