linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ptrace() and clone() status?
@ 2001-08-15 20:03 Cody Gould
  0 siblings, 0 replies; only message in thread
From: Cody Gould @ 2001-08-15 20:03 UTC (permalink / raw)
  To: linux-kernel

// Quick questions about the 2.4 series  
//  
Can a process ptrace() more than one process at  
a time?  ie: Can you PTRACE_ATTACH one process  
to multiple other processes and recieve all of  
their signals?    
  
Also, there was talk some time ago about the  
CLONE_PTRACE flag of clone() being changed to  
send signals to the grandparent process, not  
sending signals to the direct parent.  Was this  
change done?  Is the code working?  
  
If so, would the following be accurate:  
    ptrace(PTRACE_TRACEME, 0, 0, 0);  
    if(fork())   
        ptrace(PTRACE_TRACEME, 0, 0, 0);  
        // Although, for our purposes assume it  
        // actually sent signals to grandparent  
Is the same as:  
    ptrace(PTRACE_TRACEME, 0, 0, 0);  
    clone(CLONE_PTRACE, 0);  
  
I ask because I am having difficulty getting any  
signals from CLONE_PTRACE'd children in my trace  
parent.  Please CC: replies to me as I am not on  
the mailing list.  
  
Thanks,  
Cody Gould  


_____________________________________________________________________________
http://shopping.yahoo.com.au - Father's Day Shopping
- Find the perfect gift for your Dad for Father's Day

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-08-15 20:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-15 20:03 ptrace() and clone() status? Cody Gould

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).