Re: strace only one child process
- From: "tmp123" <tmp123@xxxxxxxxx>
- Date: 21 Oct 2006 03:35:52 -0700
phil-news-nospam@xxxxxxxx wrote:
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.
Hello,
Thanks for your answers,
Execution time is less than one second. No time to "ps" and "strace
-p".
The problem is the overload if all childs are traced. The overload in
"strace" seems the same independent of the "-e" options.
About modify "strace", it is a posibility. I should evaluate the
necessary effort. The idea will be add to the "-f" option an optional
numerical argument: maximum number of childs to follow.
Kind regards.
.
- 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
- 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: Writing a Linux installer?
- 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
|