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
This commit is contained in:
Tom Hughes 2005-07-20 16:05:28 +00:00
parent e1f2161fe1
commit 2e51dbbe3c

View 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);