In EBCDIC cannot test compile Net::Cmd without Convert::EBCDIC.
[p5sagit/p5-mst-13.2.git] / util.c
diff --git a/util.c b/util.c
index 29935d2..c5b32e3 100644 (file)
--- a/util.c
+++ b/util.c
@@ -1227,6 +1227,9 @@ Perl_vcroak(pTHX_ const char* pat, va_list *args)
        PL_restartop = die_where(message, msglen);
        JMPENV_JUMP(3);
     }
+    else if (!message)
+       message = SvPVx(ERRSV, msglen);
+
     {
 #ifdef USE_SFIO
        /* SFIO can really mess with your errno */
@@ -2285,7 +2288,8 @@ Perl_rsignal(pTHX_ int signo, Sighandler_t handler)
     return PerlProc_signal(signo, handler);
 }
 
-static int sig_trapped;
+static int sig_trapped;        /* XXX signals are process-wide anyway, so we
+                          ignore the implications of this for threading */
 
 static
 Signal_t