From: Tom Hughes Date: Wed, 20 Jul 2005 16:05:28 +0000 (+0000) Subject: Make VG_(kill_self) use kill to send the signal, not tkill, as we are X-Git-Tag: svn/VALGRIND_3_0_0~99 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2e51dbbe3c85544977cbe8667bfa576bc3a6e57c;p=thirdparty%2Fvalgrind.git 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. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4219 --- diff --git a/coregrind/m_signals.c b/coregrind/m_signals.c index edcdbdb44a..51b191574b 100644 --- a/coregrind/m_signals.c +++ b/coregrind/m_signals.c @@ -899,7 +899,7 @@ void VG_(kill_self)(Int sigNo) VG_(sigaddset)(&mask, sigNo); VG_(sigprocmask)(VKI_SIG_UNBLOCK, &mask, &origmask); - VG_(tkill)(VG_(getpid)(), sigNo); + VG_(kill)(VG_(getpid)(), sigNo); VG_(sigaction)(sigNo, &origsa, NULL); VG_(sigprocmask)(VKI_SIG_SETMASK, &origmask, NULL);