mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-04 02:18:37 +00:00
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:
parent
e1f2161fe1
commit
2e51dbbe3c
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user