diff options
author | Havoc Pennington <hp@redhat.com> | 2006-09-16 15:34:34 +0000 |
---|---|---|
committer | Havoc Pennington <hp@redhat.com> | 2006-09-16 15:34:34 +0000 |
commit | 08079a5bdedd6ec91cda413983e4bd3b6ee0252d (patch) | |
tree | cbb7fe4a86f449c2595825c720557c955076a874 /bus/bus.c | |
parent | e24dec0a89a5853cb448fb3037f2658f2b682650 (diff) |
2006-09-16 Havoc Pennington <hp@redhat.com>
* dbus/dbus-sysdeps-unix.h: small change to Peter's patch to make
dbus-sysdeps-unix-util.c build, add unix-specific sysdeps header.
* dbus/dbus-sysdeps.h, dbus-sysdeps-unix.c: patch from Peter
Kümmel bug #8249 to make the sysdeps.h read/write/open/close
functions specifically for sockets only, and move generic
read/write/open/close into unix-specific code.
Diffstat (limited to 'bus/bus.c')
-rw-r--r-- | bus/bus.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -630,7 +630,7 @@ bus_context_new (const DBusString *config_file, } bytes = _dbus_string_get_length (&addr); - if (_dbus_write (print_addr_fd, &addr, 0, bytes) != bytes) + if (_dbus_write_socket (print_addr_fd, &addr, 0, bytes) != bytes) { dbus_set_error (error, DBUS_ERROR_FAILED, "Printing message bus address: %s\n", @@ -640,7 +640,7 @@ bus_context_new (const DBusString *config_file, } if (print_addr_fd > 2) - _dbus_close (print_addr_fd, NULL); + _dbus_close_socket (print_addr_fd, NULL); _dbus_string_free (&addr); } @@ -731,7 +731,7 @@ bus_context_new (const DBusString *config_file, } bytes = _dbus_string_get_length (&pid); - if (_dbus_write (print_pid_fd, &pid, 0, bytes) != bytes) + if (_dbus_write_socket (print_pid_fd, &pid, 0, bytes) != bytes) { dbus_set_error (error, DBUS_ERROR_FAILED, "Printing message bus PID: %s\n", @@ -741,7 +741,7 @@ bus_context_new (const DBusString *config_file, } if (print_pid_fd > 2) - _dbus_close (print_pid_fd, NULL); + _dbus_close_socket (print_pid_fd, NULL); _dbus_string_free (&pid); } |