|
From: Nicholas N. <nj...@ca...> - 2004-02-15 16:18:17
|
CVS commit by nethercote:
Fix so that new versions of system (using clone()) work.
A none/tests/system.c 1.1 [POSSIBLY UNSAFE: system] [no copyright]
A none/tests/system.stderr.exp 1.1
A none/tests/system.vgtest 1.1
M +3 -1 coregrind/vg_syscalls.c 1.87
--- valgrind/coregrind/vg_syscalls.c #1.86:1.87
@@ -2241,5 +2241,7 @@ PRE(clone)
if (arg2 == 0 &&
- arg1 == (VKI_CLONE_CHILD_CLEARTID|VKI_CLONE_CHILD_SETTID|VKI_SIGCHLD)) {
+ (arg1 == (VKI_CLONE_CHILD_CLEARTID|VKI_CLONE_CHILD_SETTID|VKI_SIGCHLD)
+ || arg1 == (VKI_CLONE_PARENT_SETTID|VKI_SIGCHLD)))
+ {
before_fork(tid, tst);
res = VG_(do_syscall)(SYSNO, arg1, arg2, arg3, arg4, arg5);
|