From: Tor Lillqvist Date: Wed, 22 Apr 2009 10:24:40 +0000 (+0200) Subject: dbus/dbus-sysdeps-win.c: set an error when _close fails in _dbus_pipe_close (cherry... X-Git-Tag: dbus-1.3.1~206 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2df200caf92847f597ef899e9d28eb4a1dc85e46;p=thirdparty%2Fdbus.git dbus/dbus-sysdeps-win.c: set an error when _close fails in _dbus_pipe_close (cherry picked from commit 6671b4a20da468bad6842815a1161a98251b66fc) --- diff --git a/dbus/dbus-sysdeps-win.c b/dbus/dbus-sysdeps-win.c index acdd7bd64..f96d40ac3 100644 --- a/dbus/dbus-sysdeps-win.c +++ b/dbus/dbus-sysdeps-win.c @@ -124,6 +124,8 @@ _dbus_pipe_close (DBusPipe *pipe, if (_close (pipe->fd_or_handle) < 0) { + dbus_set_error (error, _dbus_error_from_errno (errno), + "Could not close pipe %d: %s", pipe->fd_or_handle, strerror (errno)); return -1; } else