Re: strace only one child process
- From: phil-news-nospam@xxxxxxxx
- Date: 20 Oct 2006 17:50:54 GMT
On Fri, 20 Oct 2006 07:19:49 -0700 John Reiser <jreiser@xxxxxxxxxxxx> wrote:
|> In the sytem I'm working, one server process creates one child process
|> for each client request. I like to strace one of these child process.
|> strace without specific options only traces the parent, and with the
|> "-f" option traces all childs, overloading the system.
|>
|> 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.
--
|---------------------------------------/----------------------------------|
| Phil Howard KA9WGN (ka9wgn.ham.org) / Do not send to the address below |
| first name lower case at ipal.net / spamtrap-2006-10-20-1248@xxxxxxxx |
|------------------------------------/-------------------------------------|
.
- Follow-Ups:
- Re: strace only one child process
- From: John Reiser
- Re: strace only one child process
- References:
- strace only one child process
- From: tmp123
- Re: strace only one child process
- From: John Reiser
- strace only one child process
- Prev by Date: Re: boot loader that can read from partition?
- 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
|