diff options
author | Perl 5 Porters <perl5-porters@africa.nicoh.com> | 1996-03-24 11:19:20 +0000 |
---|---|---|
committer | Charles Bailey <bailey@genetics.upenn.edu> | 1996-03-24 11:19:20 +0000 |
commit | a6c477ed8d4864e6557784ad46991944ec9b9f86 (patch) | |
tree | 13b2c6248d72f918f5a258afeceed2b6253707e6 /pp_ctl.c | |
parent | 86547924b0d984a01ea81fcbfd6b8676a27b9f0d (diff) | |
download | perl-a6c477ed8d4864e6557784ad46991944ec9b9f86.tar.gz |
perl 5.002_01: pp_ctl.c
Change run to runops, and e_fp test to use e_tmpname, since
e_fp is reset to 0 when file is closed in perl.c
Diffstat (limited to 'pp_ctl.c')
-rw-r--r-- | pp_ctl.c | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -998,10 +998,14 @@ char *message; } fputs(message, stderr); (void)Fflush(stderr); - if (e_fp) { - fclose(e_fp); - e_fp = Nullfp; + if (e_tmpname) { + if (e_fp) { + fclose(e_fp); + e_fp = Nullfp; + } (void)UNLINK(e_tmpname); + Safefree(e_tmpname); + e_tmpname = Nullch; } statusvalue = SHIFTSTATUS(statusvalue); #ifdef VMS @@ -1160,7 +1164,7 @@ const void *b; GvSV(secondgv) = *str2; stack_sp = stack_base; op = sortcop; - run(); + runops(); if (stack_sp != stack_base + 1) croak("Sort subroutine didn't return single value"); if (!SvNIOKp(*stack_sp)) |