VG_(oursignalhandler): when catching a fatal signal, don't longjmp
back to the scheduler if the signal is already pending.  There's
something very suspicious about all this, though.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@142 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/vg_scheduler.c b/vg_scheduler.c
index d95ebf7..855f710 100644
--- a/vg_scheduler.c
+++ b/vg_scheduler.c
@@ -457,7 +457,7 @@
 static
 UInt run_thread_for_a_while ( ThreadId tid )
 {
-   UInt trc = 0;
+   volatile UInt trc = 0;
    vg_assert(is_valid_tid(tid));
    vg_assert(vg_threads[tid].status == VgTs_Runnable);
    vg_assert(VG_(bbs_to_go) > 0);