mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-01-02 08:40:14 +01:00
2004-08-28 Havoc Pennington <hp@redhat.com>
* dbus/dbus-userdb.c (_dbus_is_console_user): remove unused variable
More fixes from Steve Grubb
* dbus/dbus-sysdeps.c (_dbus_connect_tcp_socket): fix fd leak
(_dbus_listen_tcp_socket): fix fd leak
* dbus/dbus-spawn.c (read_pid, read_ints): move the "again:" for
EINTR to a bit lower in the code
This commit is contained in:
parent
2091cdd4e1
commit
f14f2196cc
4 changed files with 18 additions and 4 deletions
12
ChangeLog
12
ChangeLog
|
|
@ -1,3 +1,15 @@
|
|||
2004-08-28 Havoc Pennington <hp@redhat.com>
|
||||
|
||||
* dbus/dbus-userdb.c (_dbus_is_console_user): remove unused variable
|
||||
|
||||
More fixes from Steve Grubb
|
||||
|
||||
* dbus/dbus-sysdeps.c (_dbus_connect_tcp_socket): fix fd leak
|
||||
(_dbus_listen_tcp_socket): fix fd leak
|
||||
|
||||
* dbus/dbus-spawn.c (read_pid, read_ints): move the "again:" for
|
||||
EINTR to a bit lower in the code
|
||||
|
||||
2004-08-26 Jon Trowbridge <trow@ximian.com>
|
||||
|
||||
* bus/driver.c (bus_driver_handle_service_exists): Respond with
|
||||
|
|
|
|||
|
|
@ -72,13 +72,13 @@ read_ints (int fd,
|
|||
{
|
||||
size_t chunk;
|
||||
size_t to_read;
|
||||
|
||||
again:
|
||||
|
||||
to_read = sizeof (int) * n_ints_in_buf - bytes;
|
||||
|
||||
if (to_read == 0)
|
||||
break;
|
||||
|
||||
again:
|
||||
|
||||
chunk = read (fd,
|
||||
((char*)buf) + bytes,
|
||||
|
|
@ -128,11 +128,12 @@ read_pid (int fd,
|
|||
size_t chunk;
|
||||
size_t to_read;
|
||||
|
||||
again:
|
||||
to_read = sizeof (pid_t) - bytes;
|
||||
|
||||
if (to_read == 0)
|
||||
break;
|
||||
|
||||
again:
|
||||
|
||||
chunk = read (fd,
|
||||
((char*)buf) + bytes,
|
||||
|
|
|
|||
|
|
@ -622,6 +622,7 @@ _dbus_connect_tcp_socket (const char *host,
|
|||
_dbus_error_from_errno (errno),
|
||||
"Failed to lookup hostname: %s",
|
||||
host);
|
||||
close (fd);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
@ -695,6 +696,7 @@ _dbus_listen_tcp_socket (const char *host,
|
|||
_dbus_error_from_errno (errno),
|
||||
"Failed to lookup hostname: %s",
|
||||
host);
|
||||
close (listen_fd);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -413,7 +413,6 @@ _dbus_is_console_user (dbus_uid_t uid,
|
|||
|
||||
DBusUserDatabase *db;
|
||||
const DBusUserInfo *info;
|
||||
DBusString *console_file;
|
||||
dbus_bool_t result = FALSE;
|
||||
|
||||
_dbus_user_database_lock_system ();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue