* dbus/dbus-sysdeps-util-unix.c (_dbus_write_pid_file):
authorJohn (J5) Palmieri <johnp@redhat.com>
Thu, 14 Sep 2006 05:20:12 +0000 (05:20 +0000)
committerJohn (J5) Palmieri <johnp@redhat.com>
Thu, 14 Sep 2006 05:20:12 +0000 (05:20 +0000)
  use _dbus_close instead of close

ChangeLog
dbus/dbus-sysdeps-util-unix.c

index 9969b9e..0e456e2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2006-09-14  John (J5) Palmieri  <johnp@redhat.com>
 
+       * dbus/dbus-sysdeps-util-unix.c (_dbus_write_pid_file):
+       use _dbus_close instead of close
+
+2006-09-14  John (J5) Palmieri  <johnp@redhat.com>
+
        * dbus/dbus-sysdeps.c: Add support for LOCAL_CREDS socket
        credentials.  Fixes "external" authentication under e.g. NetBSD
        which does not support any other socket credentials mechanism.
index 9fc7645..6898acf 100644 (file)
@@ -210,7 +210,7 @@ _dbus_write_pid_file (const DBusString *filename,
     {
       dbus_set_error (error, _dbus_error_from_errno (errno),
                       "Failed to fdopen fd %d: %s", fd, _dbus_strerror (errno));
-      close (fd);
+      _dbus_close (fd);
       return FALSE;
     }