From: Ralf Habacker Date: Mon, 12 Mar 2007 07:51:02 +0000 (+0000) Subject: * dbus/dbus-sysdeps-util-unix.c (_dbus_become_daemon): fix _dbus_pid_fd check. X-Git-Tag: dbus-1.1.0~56 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1f8d30bea106d74dfd1bb2d173cf41eda2ed9660;p=platform%2Fupstream%2Fdbus.git * dbus/dbus-sysdeps-util-unix.c (_dbus_become_daemon): fix _dbus_pid_fd check. --- diff --git a/ChangeLog b/ChangeLog index 1c7c29a..cda1c54 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-03-12 Ralf Habacker + + * dbus/dbus-sysdeps-util-unix.c (_dbus_become_daemon): + fix _dbus_pid_fd check. + 2007-03-10 Ralf Habacker * tools/dbus-print-message.c (print_message): diff --git a/dbus/dbus-sysdeps-util-unix.c b/dbus/dbus-sysdeps-util-unix.c index f1ed105..5da57db 100644 --- a/dbus/dbus-sysdeps-util-unix.c +++ b/dbus/dbus-sysdeps-util-unix.c @@ -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;