diff options
author | Craig A. Berry <craigberry@mac.com> | 2012-11-03 08:11:44 -0500 |
---|---|---|
committer | Craig A. Berry <craigberry@mac.com> | 2012-11-03 08:11:44 -0500 |
commit | 0db501320bec0c310a0f7677d3a5aacd631e878e (patch) | |
tree | 6fe494218b3e29073d55d5e038248625f5164843 /doio.c | |
parent | b2ffa09b496468f76f73ae06494c7187785f5e8c (diff) | |
download | perl-0db501320bec0c310a0f7677d3a5aacd631e878e.tar.gz |
Remove thread context from Perl_vmssetuserlnm.
This routine by its very nature applies to the whole process so
there is no way it can make use of a thread context, and it may need
to be called from places where there is no thread context, such
as very early in start-up.
It's not documented, was never intended to be part of the API, was
only made global so it could be called from doio.c, and no uses of
it turn up in a CPAN grep, so the change should be safe.
Diffstat (limited to 'doio.c')
-rw-r--r-- | doio.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -623,9 +623,9 @@ Perl_do_openn(pTHX_ GV *gv, register const char *oname, I32 len, int as_raw, char newname[FILENAME_MAX+1]; if (PerlIO_getname(fp, newname)) { if (fd == PerlIO_fileno(PerlIO_stdout())) - Perl_vmssetuserlnm(aTHX_ "SYS$OUTPUT", newname); + vmssetuserlnm("SYS$OUTPUT", newname); if (fd == PerlIO_fileno(PerlIO_stderr())) - Perl_vmssetuserlnm(aTHX_ "SYS$ERROR", newname); + vmssetuserlnm("SYS$ERROR", newname); } } #endif |