|
From: <sv...@va...> - 2005-07-20 16:06:39
|
Author: tom
Date: 2005-07-20 17:05:28 +0100 (Wed, 20 Jul 2005)
New Revision: 4219
Log:
Make VG_(kill_self) use kill to send the signal, not tkill, as we are
sending it to the whole process not a single thread.
This routine is only used when we absolutely want to terminate
valgrind and as things stand it fails if called from anything other
than the initial thread as it winds up sending the signal to the main
thread only and that typically doesn't even exist any more so we
fall through and panic.
Modified:
trunk/coregrind/m_signals.c
Modified: trunk/coregrind/m_signals.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/m_signals.c 2005-07-20 13:56:22 UTC (rev 4218)
+++ trunk/coregrind/m_signals.c 2005-07-20 16:05:28 UTC (rev 4219)
@@ -899,7 +899,7 @@
VG_(sigaddset)(&mask, sigNo);
VG_(sigprocmask)(VKI_SIG_UNBLOCK, &mask, &origmask);
=20
- VG_(tkill)(VG_(getpid)(), sigNo);
+ VG_(kill)(VG_(getpid)(), sigNo);
=20
VG_(sigaction)(sigNo, &origsa, NULL);
VG_(sigprocmask)(VKI_SIG_SETMASK, &origmask, NULL);
|