|
From: Julian S. <js...@ac...> - 2006-09-20 22:17:09
|
On Wednesday 20 September 2006 23:00, Nicholas Nethercote wrote: > On Wed, 20 Sep 2006, Josef Weidendorfer wrote: > > There is a thread creation hook, but that is useless in this case. Or is > > there a possibility to hook into a system call? > > Yes. See VG_(needs_syscall_wrapper) in include/pub_tool_tooliface.h. > You should be able to compare the syscall_num against __NR_fork. If future > OSes have fork() calls with different names, I'm not sure how best to > handle it. In particular, doesn't Linux sometimes use clone with certain parameters as fork() ? I'm sure the PRE(sys_clone) functions have some magic stuff to handle this. Josef - can you think of a way to make a regression test case for this bug (134316)? It would be nice to have one. This is the kind of fix it is easy to break later and not notice for a long time :-( J |