New(31337, PL_reentrant_buffer->tmbuff,1, struct tm);
#endif
-#ifdef DEBUGGING
- sv_setpvn(PERL_DEBUG_PAD(0), "", 0);
- sv_setpvn(PERL_DEBUG_PAD(1), "", 0);
- sv_setpvn(PERL_DEBUG_PAD(2), "", 0);
-#endif
-
/* Note that strtab is a rather special HV. Assumptions are made
about not iterating on it, and not adding tie magic to it.
It is properly deallocated in perl_destruct() */
S_procself_val(pTHX_ SV *sv, char *arg0)
{
char buf[MAXPATHLEN];
- int len = readlink("/proc/self/exe", buf, sizeof(buf) - 1);
+ int len = readlink(PROCSELFEXE_PATH, buf, sizeof(buf) - 1);
if (len > 0) {
sv_setpvn(sv,buf,len);
}
#endif /* USE_ENVIRON_ARRAY */
}
TAINT_NOT;
- if ((tmpgv = gv_fetchpv("$",TRUE, SVt_PV)))
+ if ((tmpgv = gv_fetchpv("$",TRUE, SVt_PV))) {
+ SvREADONLY_off(GvSV(tmpgv));
sv_setiv(GvSV(tmpgv), (IV)PerlProc_getpid());
+ SvREADONLY_on(GvSV(tmpgv));
+ }
}
STATIC void