summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn (J5) Palmieri <johnp@redhat.com>2006-09-14 05:20:12 +0000
committerJohn (J5) Palmieri <johnp@redhat.com>2006-09-14 05:20:12 +0000
commit1180691b35e226cdc49047a115d613e7caff5bc3 (patch)
tree35d7b4a7d4c40566b6e61543df17f158d8427a35
parente7563d502bc1400548f99dd339b5b0873eda0370 (diff)
* dbus/dbus-sysdeps-util-unix.c (_dbus_write_pid_file):
use _dbus_close instead of close
-rw-r--r--ChangeLog5
-rw-r--r--dbus/dbus-sysdeps-util-unix.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 9969b9e5..0e456e2a 100644
--- 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.
diff --git a/dbus/dbus-sysdeps-util-unix.c b/dbus/dbus-sysdeps-util-unix.c
index 9fc7645b..6898acf5 100644
--- a/dbus/dbus-sysdeps-util-unix.c
+++ b/dbus/dbus-sysdeps-util-unix.c
@@ -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;
}