Re: strace only one child process




phil-news-nospam@xxxxxxxx wrote:
On 20 Oct 2006 01:10:40 -0700 tmp123 <tmp123@xxxxxxxxx> 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?

How do you know which child you want to trace? What is your means to
identify which to trace and which not to trace?


Hello,

Thanks for your help.

Any child is valid. That means, the first (or one of the firsts, or a
few of them) child after type the "strace" command will be ok.

Kind regards.

.



Relevant Pages

  • Re: BUG: NTPL: waitpid() doesnt return?
    ... The strace case I'm more than willing to pass off as a strace problem. ... I find it quite common that strace doesn't detach from processes, ... So I assumed that the particular trace ... "CLONE_DETACHED" child, and then you expect to be able to wait for it. ...
    (Linux-Kernel)
  • Re: How to trace a process with ptrace when it forks a new process ?
    ... to trace its child too, if the process forks a child, ... The code of strace is quite complex because it supports so many different systems. ... But I don't want to do it in this way because I don't need to trace every system call. ... What I need to trace is when the process forks a new process and exits. ...
    (comp.os.linux.development.system)
  • Re: strace only one child process
    ... I like to strace one of these child process. ... How do you know which child you want to trace? ...
    (comp.os.linux.development.system)
  • Re: How to trace a process with ptrace when it forks a new process ?
    ... |> |>> to trace its child too, if the process forks a child, ... I think strace traces every system calls. ... |> | But I don't want to do it in this way because I don't need to trace ... What I need to trace is when the process forks a new ...
    (comp.os.linux.development.system)
  • Re: strace one child process
    ... I like to "strace" one of these child process. ... "-f" option traces all childs, ...
    (comp.os.linux.misc)