Subject: | Signals safe in Perl 5.8.0 |
For Perl 5.8.0 and earlier, PERL_SIGNALS_UNSAFE_FLAG is not defined.
When PERL_SIGNALS_UNSAFE_FLAG is not defined, PL_signals is set to 1 so
that signals are flagged as unsafe. However, in Perl 5.8.0, signals are
safe. Therefore, for Perl 5.8.0, PL_signals should be set to 0.
This can be fixed with the following patch:
diff -urN Devel-PPPort-3.10/PPPort.pm Devel-PPPort-Patched/PPPort.pm
--- Devel-PPPort-3.10/PPPort.pm 2006-08-14 15:27:16.000000000 -0400
+++ Devel-PPPort-Patched/PPPort.pm 2006-08-30 10:07:06.000000000 -0400
@@ -4705,8 +4705,11 @@
#endif
#ifndef PERL_SIGNALS_UNSAFE_FLAG
-
-#define PERL_SIGNALS_UNSAFE_FLAG 0x0001
+#if ((PERL_REVISION == 5) && (PERL_VERSION == 8) && (PERL_SUBVERSION == 0))
+# define PERL_SIGNALS_UNSAFE_FLAG 0
+#else
+# define PERL_SIGNALS_UNSAFE_FLAG 0x0001
+#endif
#if defined(NEED_PL_signals)
static U32 DPPP_(my_PL_signals) = PERL_SIGNALS_UNSAFE_FLAG;