vg_signals.c: vg_oursignalhandler(): don't longjmp() on fatal signal if
the scheduler's jmp_buf is not valid.  This might avoid at least some
of the following:
   vg_scheduler.c:479 (run_thread_for_a_while): Assertion `trc == 0'
   failed.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@490 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/vg_include.h b/coregrind/vg_include.h
index d489be3..40506c1 100644
--- a/coregrind/vg_include.h
+++ b/coregrind/vg_include.h
@@ -776,6 +776,10 @@
 
 /* vg_oursignalhandler() might longjmp().  Here's the jmp_buf. */
 extern jmp_buf VG_(scheduler_jmpbuf);
+/* This says whether scheduler_jmpbuf is actually valid.  Needed so
+   that our signal handler doesn't longjmp when the buffer isn't
+   actually valid. */
+extern Bool    VG_(scheduler_jmpbuf_valid);
 /* ... and if so, here's the signal which caused it to do so. */
 extern Int     VG_(longjmpd_on_signal);