aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Bachelier <laurent@bachelier.name>2010-12-27 18:59:36 +0100
committerLaurent Bachelier <laurent@bachelier.name>2010-12-27 18:59:36 +0100
commit40bbd9cb8e778c0850a7ce2e89e2cd231b36eddc (patch)
tree0f46ceb4b98f9192d18a7e0aea29b04ffe017fe0
parentProperly exit when the child is defunct (diff)
downloadsymfttpd-40bbd9cb8e778c0850a7ce2e89e2cd231b36eddc.tar.xz
Remove while(true) condition
-rwxr-xr-xspawn3
1 files changed, 1 insertions, 2 deletions
diff --git a/spawn b/spawn
index 657470d..a467a87 100755
--- a/spawn
+++ b/spawn
@@ -113,9 +113,8 @@ else
{
// Parent process
$prev_genconf = null;
- while (true)
+ while (false !== sleep(1))
{
- sleep(1);
$handle = popen($options['php_cmd'].' '.$project_path.'/config/lighttpd.php', 'r');
$genconf = stream_get_contents($handle);
pclose($handle);