|
From: Jérémie D. <Ba...@us...> - 2010-01-30 14:24:14
|
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 5255dd22baf3b168c0761660b3dc61d99ec97188 (commit)
from 4f75b2c0e65d4101d9064485f687ac32ee4495f2 (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 5255dd22baf3b168c0761660b3dc61d99ec97188
Author: Jérémie Dimino <je...@di...>
Date: Sat Jan 30 15:23:42 2010 +0100
release the name in shutdown
-----------------------------------------------------------------------
Changes:
diff --git a/PC_Mainboard/driver/src/driver.ml b/PC_Mainboard/driver/src/driver.ml
index 382fc57..3d67efd 100644
--- a/PC_Mainboard/driver/src/driver.ml
+++ b/PC_Mainboard/driver/src/driver.ml
@@ -409,9 +409,11 @@ struct
return ()
OL_method Shutdown : unit = fun () ->
+ lwt bus = Lazy.force OBus_bus.system in
lwt () = close_card card_interface
and () = close_card card_sensor
- and () = close_card card_motor in
+ and () = close_card card_motor
+ and _ = OBus_bus.release_name bus "fr.krobot" in
Lwt.wakeup done_wakener ();
return ()
end
@@ -494,7 +496,7 @@ lwt () =
else begin
Log#info "starting krobot driver in daemon mode";
(* In daemon mode, send messages to syslog: *)
- Lwt_log.default := Lwt_log.syslog ~facility:`Daemon ();
+ Lwt_log.default := Lwt_log.syslog ~level:Lwt_log.Info ~facility:`Daemon ();
(* Become a daemon. Keep stderr for possible error messages of
libusb. *)
Lwt_unix.daemonize ~keep_stderr:true ()
hooks/post-receive
--
krobot
|