This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "krobot".
The branch, master has been updated
via d75c624ea6637e76d1acdc2f25ca59c8c93fc4c7 (commit)
from fa1824d9c5b53f71a4e6091206ab2e73ac1c1b74 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit d75c624ea6637e76d1acdc2f25ca59c8c93fc4c7
Author: Jérémie Dimino <je...@di...>
Date: Wed Apr 20 09:03:13 2011 +0200
[krobot_hub] fix a race condition which prevented the hub to be run in background
-----------------------------------------------------------------------
Changes:
diff --git a/info/control2011/src/tools/krobot_hub.ml b/info/control2011/src/tools/krobot_hub.ml
index 406e505..e68fc5b 100644
--- a/info/control2011/src/tools/krobot_hub.ml
+++ b/info/control2011/src/tools/krobot_hub.ml
@@ -136,11 +136,11 @@ lwt () =
(* Establish the local server. *)
ignore (Lwt_io.establish_server (Unix.ADDR_INET(Unix.inet_addr_any, port)) (fun channels -> handle_connection hub channels));
- (* Launch link to other HUBs. *)
- List.iter (fun host -> ignore (link hub host)) !hosts;
-
(* Fork if not prevented. *)
if !fork then Lwt_daemon.daemonize ();
+ (* Launch link to other HUBs. *)
+ List.iter (fun host -> ignore (link hub host)) !hosts;
+
(* Wait forever. *)
fst (wait ())
hooks/post-receive
--
krobot
|