lkml.org 
[lkml]   [2001]   [Aug]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectptrace() and clone() status?
// 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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:57    [W:1.994 / U:2.160 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site