Subject: [PATCH] $0 modifying
Message-ID: <
20021130181651.GA5876@kosh.hut.fi>
p4raw-id: //depot/perl@18230
# endif
#endif
+#ifdef __hpux
+# include <sys/pstat.h>
+#endif
+
/* if you only have signal() and it resets on each signal, FAKE_PERSISTENT_SIGNAL_HANDLERS fixes */
#if !defined(HAS_SIGACTION) && defined(VMS)
# define FAKE_PERSISTENT_SIGNAL_HANDLERS
# endif
}
#endif
+#if defined(__hpux) && defined(PSTAT_SETCMD)
+ {
+ union pstun un;
+ s = SvPV(sv, len);
+ un.pst_command = s;
+ pstat(PSTAT_SETCMD, un, len, 0, 0);
+ }
+#endif
if (!PL_origalen) {
s = PL_origargv[0];
s += strlen(s);