dbus/bus bus.c,1.56,1.57

Colin Walters walters at freedesktop.org
Fri Oct 29 12:59:17 PDT 2004


Update of /cvs/dbus/dbus/bus
In directory gabe:/tmp/cvs-serv27378/bus

Modified Files:
	bus.c 
Log Message:
2004-10-29  Colin Walters  <walters at redhat.com>

	* dbus/dbus-sysdeps.h (_dbus_become_daemon): Also take
	parameter for fd to write pid to.	

	* dbus/dbus-sysdeps.c (_dbus_become_daemon): Implement it.
	
	* bus/bus.c (bus_context_new): Pass print_pid_fd
	to _dbus_become_daemon (bug #1720)


Index: bus.c
===================================================================
RCS file: /cvs/dbus/dbus/bus/bus.c,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -d -r1.56 -r1.57
--- bus.c	12 Sep 2004 10:23:41 -0000	1.56
+++ bus.c	29 Oct 2004 19:59:15 -0000	1.57
@@ -663,7 +663,9 @@
       if (context->pidfile)
         _dbus_string_init_const (&u, context->pidfile);
       
-      if (!_dbus_become_daemon (context->pidfile ? &u : NULL, error))
+      if (!_dbus_become_daemon (context->pidfile ? &u : NULL, 
+				print_pid_fd,
+				error))
 	{
 	  _DBUS_ASSERT_ERROR_IS_SET (error);
 	  goto failed;



More information about the dbus-commit mailing list