]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Make VG_(kill_self) use kill to send the signal, not tkill, as we are
authorTom Hughes <tom@compton.nu>
Wed, 20 Jul 2005 16:05:28 +0000 (16:05 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 20 Jul 2005 16:05:28 +0000 (16:05 +0000)
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

coregrind/m_signals.c

index edcdbdb44a3c35f49c9e4bb4a07dde2c62f949a2..51b191574b5aa805208d7222980b298a04c2608b 100644 (file)
@@ -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);