|
|
|
Your skill will accomplish what the force of many cannot |
|
| PerlMonks |
Re^2: Safely reading line by lineby martin (Friar) |
| on Jun 27, 2007 at 16:49 UTC ( [id://623673]=note: print w/replies, xml ) | Need Help?? |
|
A total memory limit for a process will limit the impact a single failure will have on the rest of the system.
This is a reasonable precaution.
On my Debian GNU/Linux box I can call in the shell before starting my program and it will no longer be able to use more than 10000 Kilobytes of virtual memory. However, that is not all I wanted. I would like to be able to stop processing the input file as soon as its contents are known to be malformed and take whatever evasive action is most appropriate. This would rule out plainly crashing in many cases.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||