Re: strace only one child process
- From: John Reiser <jreiser@xxxxxxxxxxxx>
- Date: Fri, 20 Oct 2006 12:26:58 -0700
phil-news-nospam@xxxxxxxx wrote:
|> Knows someone any trick to trace only one (or a few ones) childs?
|
| Attach to the desired child after it has been created.
| See the documentation for "strace -p <pid>".
He might be wanting to see what the child does with the incoming connection
right when it forks. The child may only live long enough to do something
and then exit. I have a daemon that, upon TCP connection, spits out a file
to whatever connects, then exits. If it's a short file, the child is gone
in quite a hurry.
The suggestion to attach after the child exists does help in some
cases. In some others, the child can be modified to wait long enough.
When both of those fail, what did _you_ suggest that works?
--
.
- Follow-Ups:
- Re: strace only one child process
- From: phil-news-nospam
- Re: strace only one child process
- References:
- strace only one child process
- From: tmp123
- Re: strace only one child process
- From: John Reiser
- Re: strace only one child process
- From: phil-news-nospam
- strace only one child process
- Prev by Date: Re: strace only one child process
- Next by Date: Re: strace only one child process
- Previous by thread: Re: strace only one child process
- Next by thread: Re: strace only one child process
- Index(es):
Relevant Pages
|