# endif
#endif
-/* if you only have signal() and it resets on each signal, SIGNAL_FIX fixes */
+/* if you only have signal() and it resets on each signal, FAKE_PERSISTENT_SIGNAL_HANDLERS fixes */
#if !defined(HAS_SIGACTION) && defined(VMS)
-# define SIGNAL_FIX
+# define FAKE_PERSISTENT_SIGNAL_HANDLERS
#endif
static void restore_magic(pTHX_ void *p);
return 0;
}
-#ifdef SIGNAL_FIX
+#ifdef FAKE_PERSISTENT_SIGNAL_HANDLERS
static int sig_ignoring_initted = 0;
static int sig_ignoring[SIG_SIZE]; /* which signals we are ignoring */
#endif
sv_setsv(sv,PL_psig_ptr[i]);
else {
Sighandler_t sigstate;
-#ifdef SIGNAL_FIX
+#ifdef FAKE_PERSISTENT_SIGNAL_HANDLERS
if (sig_ignoring_initted && sig_ignoring[i])
sigstate = SIG_IGN;
else
#ifndef PERL_OLD_SIGNALS
dTHX;
#endif
-#ifdef SIGNAL_FIX
+#ifdef FAKE_PERSISTENT_SIGNAL_HANDLERS
(void) rsignal(sig, &Perl_csighandler);
if (sig_ignoring[sig]) return;
#endif
Perl_warner(aTHX_ WARN_SIGNAL, "No such signal: SIG%s", s);
return 0;
}
-#ifdef SIGNAL_FIX
+#ifdef FAKE_PERSISTENT_SIGNAL_HANDLERS
if (!sig_ignoring_initted) {
int j;
for (j = 0; j < SIG_SIZE; j++) sig_ignoring[j] = 0;
s = SvPV_force(sv,len);
if (strEQ(s,"IGNORE")) {
if (i) {
-#ifdef SIGNAL_FIX
+#ifdef FAKE_PERSISTENT_SIGNAL_HANDLERS
sig_ignoring[i] = 1;
(void)rsignal(i, &Perl_csighandler);
#else