  @end
  
  int WOWatchDogApplicationMainWithServerDefaults
-@@ -437,7 +1039,7 @@
+@@ -437,7 +1046,7 @@
    {
      extern char **environ;
      [NSProcessInfo initializeWithArguments:(void*)argv count:argc

 #if LIB_FOUNDATION_LIBRARY || defined(GS_PASS_ARGUMENTS)
   {
     extern char **environ;
@@ -241,179 +955,67 @@
                    environment:(void*)environ];
   }
 #endif

+
+    // NSLog (@"ready to process requests");
+    runLoop = [NSRunLoop currentRunLoop];
+
+    /* This timer ensures the looping of the runloop at reasonable intervals
+       for correct processing of signal handlers. */
+    [NSTimer scheduledTimerWithTimeInterval: 0.5
+                                     target: self
+                                   selector: @selector (_noop)
+                                   userInfo: nil
+                                    repeats: YES];
+    terminate = NO;
+    while (!terminate) {
+      pool = [NSAutoreleasePool new];
