Re: strace only one child process



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>".

--
.



Relevant Pages

  • Re: strace one child process
    ... I like to "strace" one of these child process. ... "-f" option traces all childs, ...
    (comp.os.linux.misc)
  • Re: strace one child process
    ... I like to "strace" one of these child process. ... "-f" option traces all childs, ...
    (comp.os.linux.misc)
  • Re: strace one child process
    ... I like to "strace" one of these child process. ... "-f" option traces all childs, ...
    (comp.os.linux.misc)
  • Re: beach blocks
    ... Jim S posted ... I never saw any traces of bombing, but I believe it was used for rifle practice. ... "If just one child is saved, then we'll have created a police state for the ...
    (uk.local.geordie)
  • 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)