[Phonehome-commits] r114 - in trunk/client: debian src

pamadio at garage.maemo.org pamadio at garage.maemo.org
Sat Oct 25 22:32:27 EEST 2008


Author: pamadio
Date: 2008-10-25 22:32:22 +0300 (Sat, 25 Oct 2008)
New Revision: 114

Modified:
   trunk/client/debian/changelog
   trunk/client/src/dsk_mgr.c
Log:
sleeping when there s nothing to do

Modified: trunk/client/debian/changelog
===================================================================
--- trunk/client/debian/changelog	2008-10-25 18:13:33 UTC (rev 113)
+++ trunk/client/debian/changelog	2008-10-25 19:32:22 UTC (rev 114)
@@ -1,7 +1,8 @@
-phonehome (0-1.20091025.5) unstable; urgency=low
+phonehome (0-1.20091025.6) unstable; urgency=low
 
   * Initial release
+  *
   * 
 
- -- Pierre Amadio <pierre.amadio at libertysurf.fr>  Sat, 25 Oct 2008 19:55:41 +0200
+ -- Pierre Amadio <pierre.amadio at libertysurf.fr>  Sat, 25 Oct 2008 21:20:59 +0200
 

Modified: trunk/client/src/dsk_mgr.c
===================================================================
--- trunk/client/src/dsk_mgr.c	2008-10-25 18:13:33 UTC (rev 113)
+++ trunk/client/src/dsk_mgr.c	2008-10-25 19:32:22 UTC (rev 114)
@@ -1071,6 +1071,12 @@
   return TRUE;
 }
 
+gboolean idle_timeout(gpointer data){
+  //log_debug("nothing to do\n");
+  sleep(1);
+  return TRUE;
+}
+
 gboolean monitor_connection(gpointer user_data){
   log_debug("Monitoring cnx\n");
   if(connection_flag==TRUE) {
@@ -1213,6 +1219,7 @@
 
   //g_timeout_add(5000,my_timeout,(gpointer) mainloop);
   g_timeout_add(5*60*1000,monitor_connection,NULL);
+  g_idle_add(idle_timeout,NULL);
   //fill_gps_positions_with_fake();
   //log_debug("coin coin\n");
   //send_gps_infos();  



More information about the Phonehome-commits mailing list