D-Bus  1.9.11
DBusServer implementations for Launchd

Implementation details of DBusServer with Launchd support. More...


DBusServer_dbus_server_new_for_launchd (const char *launchd_env_var, DBusError *error)
 Creates a new server from launchd. More...

Detailed Description

Implementation details of DBusServer with Launchd support.

Function Documentation

DBusServer* _dbus_server_new_for_launchd ( const char *  launchd_env_var,
DBusError error 

Creates a new server from launchd.

launchd has allocaed a socket for us. We now query launchd for the file descriptor of this socket and create a server on it. In addition we inherit launchd's environment which holds a variable containing the path to the socket. This is used to init the server's address which is passed to autolaunched services.

launchd_env_varthe environment variable which holds the unix path to the socket
errorlocation to store reason for failure.
the new server, or NULL on failure.

Definition at line 66 of file dbus-server-launchd.c.

References _dbus_fd_set_close_on_exec(), _dbus_getenv(), _dbus_server_new_for_socket(), _dbus_string_append(), _dbus_string_free(), _dbus_string_init(), _dbus_warn(), DBUS_ERROR_BAD_ADDRESS, DBUS_ERROR_FAILED, DBUS_ERROR_IO_ERROR, DBUS_ERROR_LIMITS_EXCEEDED, DBUS_ERROR_NO_MEMORY, DBUS_ERROR_NO_SERVER, dbus_set_error(), dbus_setenv(), and NULL.

Referenced by _dbus_server_listen_platform_specific().