hal/hald hald.c,1.20,1.21

David Zeuthen david at freedesktop.org
Mon Oct 18 15:52:07 PDT 2004


Update of /cvs/hal/hal/hald
In directory gabe:/tmp/cvs-serv26755/hald

Modified Files:
	hald.c 
Log Message:
2004-10-18  David Zeuthen  <davidz at redhat.com>

	* hald/hald.c (main): Do openlog() so we can log to the syslog
	
	* hald/linux/hald_helper.h: Add a timestamp field
	
	* hald/linux/osspec.c:
	(osspec_timer_handler): Call hotplug_timeout_handler
	(hotplug_timeout_handler): New function
	(hald_helper_hotplug_process_queue): Set last timestamp and add
	 uncommented test code for dropping every 16th hotplug event
	(hald_helper_first_hotplug_event): Update last timestamp
	
	* tools/linux/hal_dev.c (main): Set timestamp
	
	* tools/linux/hal_hotplug.c (main): Set timestamp



Index: hald.c
===================================================================
RCS file: /cvs/hal/hal/hald/hald.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- hald.c	12 Oct 2004 20:17:08 -0000	1.20
+++ hald.c	18 Oct 2004 22:52:05 -0000	1.21
@@ -41,6 +41,7 @@
 #include <sys/prctl.h>
 #include <sys/capability.h>
 #include <grp.h>
+#include <syslog.h>
 
 #include <dbus/dbus.h>
 #include <dbus/dbus-glib.h>
@@ -322,6 +323,8 @@
 	GMainLoop *loop;
 	guint sigterm_iochn_listener_source_id;
 
+	openlog ("hald", LOG_PID, LOG_DAEMON);
+
 	g_type_init ();
 
 	logger_init ();




More information about the hal-commit mailing list