Megatest

Diff
Login

Differences From Artifact [155583da14]:

To Artifact [13e24a0524]:


455
456
457
458
459
460
461

462





463
464
465
466
467
468
469
455
456
457
458
459
460
461
462

463
464
465
466
467
468
469
470
471
472
473
474







+
-
+
+
+
+
+







;; all routes though here end in exit ...
;;
;; start_server? 
;;
(define (http-transport:launch run-id)
  (set! *run-id*   run-id)
  (if (args:get-arg "-daemonize")
      (begin
      (daemon:ize))
	(daemon:ize)
	(if *alt-log-file* ;; we should re-connect to this port, I think daemon:ize disrupts it
	    (begin
	      (current-error-port *alt-log-file*)
	      (current-output-port *alt-log-file*)))))
  (if (server:check-if-running run-id)
      (begin
	(debug:print 0 "INFO: Server for run-id " run-id " already running")
	(exit 0)))
  (let loop ((server-id (open-run-close tasks:server-lock-slot tasks:open-db run-id))
	     (remtries  4))
    (if (not server-id)