diff options
author | Ilya Zakharevich <ilya@math.ohio-state.edu> | 1996-02-07 12:16:06 -0500 |
---|---|---|
committer | Andy Dougherty <doughera@lafcol.lafayette.edu> | 1996-02-07 12:16:06 -0500 |
commit | e632a5f6ab0a453792bebdee829ccf5f39056657 (patch) | |
tree | c15673424ed7f338a9901514e26f4d04ef8e8764 /pp_ctl.c | |
parent | 1193dd27ade65d48ff9917d545f844f2c8e15493 (diff) | |
download | perl-e632a5f6ab0a453792bebdee829ccf5f39056657.tar.gz |
TMPFILE support
Currently on DOSISH machines a -e line with a syntax error results in
persisting pl234523 tmpfile. The patch below:
a) Cleans up the cleanup code;
b) Moves the TMPPATH specifics to header files.
I do not send patches for OS/2 files, since they are very much
reworked now, I only note that b) allows OS/2 startup to specify
TMPPATH to look to a $ENV{TMP} directory (instead of the current
directory, as it is now). Note that this allows now running -e perl
from read-only media.
Since there is no place now to have DOSISH _code_, as opposed to
_headers_, I leave the TMPPATH code on ./os2/os2.c, though it should
be common to DOS as well.
Enjoy,
Ilya
Diffstat (limited to 'pp_ctl.c')
-rw-r--r-- | pp_ctl.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -998,8 +998,12 @@ char *message; } fputs(message, stderr); (void)fflush(stderr); - if (e_fp) + if (e_fp) { +#ifdef DOSISH + fclose(e_fp); +#endif (void)UNLINK(e_tmpname); + } statusvalue = SHIFTSTATUS(statusvalue); #ifdef VMS my_exit((U32)vaxc$errno?vaxc$errno:errno?errno:statusvalue?statusvalue:SS$_ABORT); |