On 29/06/11 14:29, janjust wrote:

>     Does anyone have any pointers on how to catch when a fork in a client
> occurs? Precisely my aim is to order the PIDs with respect to when they
> occurred.

Presumably you're righting a tool, and want to know how the tool should 
get called when a fork occurs? I can't see any other context in which 
the question makes sense, but you didn't actually say what the context 
of your question was.

What you need to look at is VG_(atfork) in include/pub_tool_libcproc.h 
anyway, which will let you register callbacks to be called at various 
points in the fork process.

Tom

-- 
Tom Hughes (t...@compton.nu)
http://compton.nu/

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to