diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 1999-08-14 13:06:12 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 1999-08-14 13:06:12 +0000 |
commit | 94e4c24434948b232e1a08fce7b0c2f871b1262e (patch) | |
tree | dca32620d19a4c31cc2185fc2a8e7133bbdde236 /doio.c | |
parent | fcbfa962e80dc16f8db1afaeb5287e8a393d3942 (diff) | |
download | perl-94e4c24434948b232e1a08fce7b0c2f871b1262e.tar.gz |
Note about filesize limits.
p4raw-id: //depot/cfgperl@3990
Diffstat (limited to 'doio.c')
-rw-r--r-- | doio.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1022,6 +1022,11 @@ Perl_do_print(pTHX_ register SV *sv, PerlIO *fp) tmps = SvPV(sv, len); break; } + /* To detect whether the process is about to overstep its + * filesize limit we would need getrlimit(). We could then + * also transparently raise the limit with setrlimit() -- + * but only until the system hard limit/the filesystem limit, + * at which we would get EPERM. --jhi */ if (len && (PerlIO_write(fp,tmps,len) == 0 || PerlIO_error(fp))) return FALSE; return !PerlIO_error(fp); |