fixes a bug when queue_server launched after a crawl start message, now ignores old message rather than give a php warning, a=chris

Chris Pollett [2011-08-22 05:Aug:nd]
fixes a bug when queue_server launched after a crawl start message, now ignores old message rather than give a php warning, a=chris
Filename
controllers/admin_controller.php
lib/crawl_daemon.php
diff --git a/controllers/admin_controller.php b/controllers/admin_controller.php
index b55abc62d..45d9ca3cb 100755
--- a/controllers/admin_controller.php
+++ b/controllers/admin_controller.php
@@ -757,7 +757,8 @@ class AdminController extends Controller implements CrawlConstants
                     file_put_contents(
                         CRAWL_DIR."/schedules/queue_server_messages.txt",
                         $info_string);
-
+                    chmod(CRAWL_DIR."/schedules/queue_server_messages.txt",
+                        0777);
                     $scheduler_info[self::HASH_SEEN_URLS] = array();

                     foreach ($seed_info['seed_sites']['url'] as $site) {
diff --git a/lib/crawl_daemon.php b/lib/crawl_daemon.php
index a72499ad6..e0f517d1a 100644
--- a/lib/crawl_daemon.php
+++ b/lib/crawl_daemon.php
@@ -186,6 +186,7 @@ class CrawlDaemon implements CrawlConstants
             break;

             case "terminal":
+
                 $info = array();
                 $info[self::STATUS] = self::WAITING_START_MESSAGE_STATE;
                 file_put_contents(
ViewGit