Hi there,
I'm curious how much the sleep() which is set to no limit can consume the system resource. Could it cause to hang the server? I tried the following and couldnot see the server got busy. Although the browser seemed to be so, if I access to a different page, it responded very quick as usual. It's not a big deal, is it?
sleep.php
<?php
set_time_limit(0);
sleep(0);
?>
fork_sleep.php
<?php
$str = "php -f sleep.php";
exec("$str > /dev/null &");
?>