in reply to Re: Re: Re: Perl infinite loops!
in thread Perl infinite loops!
The advantage is that it's dependent on how much CPU time your script uses. If the server is busy with some other process your script may run for a lot of wall-clock time, but it will not be killed prematurely.
The same functionality no doubt exists in other systems, but this is not going to be the most portable implementation in the world.
We used this to good effect within the suexec wrapper for Apache - at the same time you can prevent memory hogs and fork() bombs, and it applies to all CGI scripts on the server.
|
|---|