Re: strace only one child process
- From: phil-news-nospam@xxxxxxxx
- Date: 21 Oct 2006 03:09:06 GMT
On Fri, 20 Oct 2006 12:26:58 -0700 John Reiser <jreiser@xxxxxxxxxxxx> wrote:
| 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?
Filtering the strace output. Or modifying strace.
--
|---------------------------------------/----------------------------------|
| Phil Howard KA9WGN (ka9wgn.ham.org) / Do not send to the address below |
| first name lower case at ipal.net / spamtrap-2006-10-20-2208@xxxxxxxx |
|------------------------------------/-------------------------------------|
.
- Follow-Ups:
- Re: strace only one child process
- From: tmp123
- 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
- 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: boot loader that can read from partition?
- Previous by thread: Re: strace only one child process
- Next by thread: Re: strace only one child process
- Index(es):
Relevant Pages
|