Re: strace only one child process



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?

--

.



Relevant Pages

  • Re: How does ATTACH pass address of ECB to child?
    ... How does ATTACH pass address of ECB to child? ... was come up with example uses for compare&swap instruction ... ...
    (bit.listserv.ibm-main)
  • Re: How does ATTACH pass address of ECB to child?
    ... How does ATTACH pass address of ECB to child? ...
    (bit.listserv.ibm-main)
  • Re: Buying Babies
    ... > If you get a day old to sub-verbalizing infant, ... what's actually important is that a child learn to form ... Institutionalized infants who never attach often ... And humans don't "imprint." ...
    (soc.motss)
  • Re: Page background color wont change.
    ... Suppose someone uses scripting to attach a DIV ... as a child of a TR. ... it's just that from what I've seen browsers don't do error ...
    (alt.html)
  • Re: Delete Button!!!
    ... Child X wrote: ... I have the following datagrid: ... What i want to acheive is attach a onclick javascript event on the delete ...
    (microsoft.public.dotnet.framework.aspnet)