Index: tools/skiaserve/skiaserve.cpp |
diff --git a/tools/skiaserve/skiaserve.cpp b/tools/skiaserve/skiaserve.cpp |
index 1a188dbddfa251090355496d797ac7ea39635369..e26af78f9e6fe4f36e863951b4cf2617cd168a06 100644 |
--- a/tools/skiaserve/skiaserve.cpp |
+++ b/tools/skiaserve/skiaserve.cpp |
@@ -26,6 +26,7 @@ using namespace Response; |
DEFINE_int32(port, 8888, "The port to listen on."); |
DEFINE_string(address, "127.0.0.1", "The address to bind to."); |
+DEFINE_bool(hosted, false, "Running in hosted mode on debugger.skia.org."); |
class UrlManager { |
public: |
@@ -115,7 +116,18 @@ int skiaserve_main() { |
return 1; |
} |
- getchar(); |
+ if (FLAGS_hosted) { |
+ while (1) { |
+ SkDebugf("loop\n"); |
+ #if defined(SK_BUILD_FOR_WIN) |
+ Sleep(60 * 1000); |
+ #else |
+ sleep(60); |
+ #endif |
+ } |
+ } else { |
+ getchar(); |
+ } |
MHD_stop_daemon(daemon); |
return 0; |
} |