* dbus/dbus-sysdeps-util-unix.c (_dbus_become_daemon): fix _dbus_pid_fd check.

This commit is contained in:
Ralf Habacker 2007-03-12 07:51:02 +00:00
parent af4e4dc276
commit 1f8d30bea1
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2007-03-12 Ralf Habacker <ralf.habacker@freenet.de>
* dbus/dbus-sysdeps-util-unix.c (_dbus_become_daemon):
fix _dbus_pid_fd check.
2007-03-10 Ralf Habacker <ralf.habacker@freenet.de>
* tools/dbus-print-message.c (print_message):

View file

@ -135,7 +135,7 @@ _dbus_become_daemon (const DBusString *pidfile,
}
/* Write PID if requested */
if (print_pid_fd >= 0)
if (_dbus_pipe_is_valid(print_pid_fd))
{
DBusString pid;
int bytes;