|
From: Wolfgang R. <wol...@ro...> - 2003-09-05 09:17:59
|
next problem, solved by this patch: (I copied the code for __NR_wait4
and adapted it)
/home/wr/Desktop/valgrind-20030725/coregrind# diff -u o vg_syscalls.c
--- o 2003-09-05 11:13:15.000000000 +0200
+++ vg_syscalls.c 2003-09-05 11:13:36.000000000 +0200
@@ -3324,6 +3324,20 @@
KERNEL_DO_SYSCALL(tid,res);
break;
+ case __NR_waitpid: /* syscall 7 */
+ /* pid_t waitpid(pid_t pid, int *status, int options); */
+ MAYBE_PRINTF("waitpid ( %d, %p, %d )\n",
+ arg1,arg2,arg3);
+ if (arg2 !=3D (Addr)NULL)
+ SYSCALL_TRACK( pre_mem_write, tid, "waitpid(status)",
+ arg2, sizeof(int) );
+ KERNEL_DO_SYSCALL(tid,res);
+ if (!VG_(is_kerror)(res)) {
+ if (arg2 !=3D (Addr)NULL)
+ VG_TRACK( post_mem_write, arg2, sizeof(int) );
+ }
+ break;
+
case __NR_wait4: /* syscall 114 */
/* pid_t wait4(pid_t pid, int *status, int options,
struct rusage *rusage) */
--=20
mit freundlichen Gr=FCssen
with my best greetings
Wolfgang Rohdewald
dipl. Informatik Ing. ETH Rohdewald Systemberatung
Karauschenstieg 4
D 21640 Horneburg
Tel.: 04163 826 819
Fax: 04163 826 828
Internet: www.rohdewald.de
|
|
From: Tom H. <th...@cy...> - 2003-09-05 09:47:59
|
In message <200...@ro...>
Wolfgang Rohdewald <wol...@ro...> wrote:
> next problem, solved by this patch: (I copied the code for __NR_wait4
> and adapted it)
Well you're only the fourth person to send that patch in ;-) One of
them has even been checked in I think.
Tom
--
Tom Hughes (th...@cy...)
Software Engineer, Cyberscience Corporation
http://www.cyberscience.com/
|