ptrace() and clone() status?

Cody Gould (codygould@yahoo.com.au)
Thu, 16 Aug 2001 06:03:40 +1000 (EST)


// 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/