aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Bachelier <laurent@bachelier.name>2011-05-06 15:55:31 +0200
committerLaurent Bachelier <laurent@bachelier.name>2011-05-06 15:55:31 +0200
commitc532b250a14433492c2eb8736bb62b49e974d696 (patch)
tree77eadd840a2e52bc87e9bbcb018b10353e779e0b
parentUpdate copyright (diff)
downloadsymfttpd-c532b250a14433492c2eb8736bb62b49e974d696.tar.xz
Don't restart the server right away
-rwxr-xr-xspawn3
1 files changed, 3 insertions, 0 deletions
diff --git a/spawn b/spawn
index 3cb35a5..b270318 100755
--- a/spawn
+++ b/spawn
@@ -144,6 +144,9 @@ else
pclose($handle);
if ($prev_genconf !== null && $prev_genconf !== $genconf)
{
+ // This sleep() is so that if a HTTP request just created a file in web/,
+ // the web server isn't restarted right away.
+ sleep(1);
touch($options['restartfile']);
!PosixTools::killPid($options['pidfile']);
}