]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
dbus/dbus-sysdeps-win.c: set an error when _close fails in _dbus_pipe_close (cherry...
authorTor Lillqvist <tml@iki.fi>
Wed, 22 Apr 2009 10:24:40 +0000 (12:24 +0200)
committerRalf Habacker <ralf.habacker@freenet.de>
Mon, 30 Nov 2009 12:21:30 +0000 (13:21 +0100)
dbus/dbus-sysdeps-win.c

index acdd7bd64d8517de0efdd46125936247d88c72e5..f96d40ac35ff1d5aa5e4801e35841155521b244a 100644 (file)
@@ -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