aboutsummaryrefslogtreecommitdiffstats
path: root/src/system
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-03-03 23:04:22 +0100
committerMax Kellermann <max@duempel.org>2015-03-03 23:04:25 +0100
commitdd4beea44c6a574a25d1778e946f470683e1a0d6 (patch)
tree2210bb5b734ee5cf98af445f75767ab8b1c656f8 /src/system
parent5b48d597690bff2ecfccc71a66b9812e2bc98f03 (diff)
downloadmpd-dd4beea44c6a574a25d1778e946f470683e1a0d6.tar.gz
mpd-dd4beea44c6a574a25d1778e946f470683e1a0d6.tar.xz
mpd-dd4beea44c6a574a25d1778e946f470683e1a0d6.zip
system/FileDescriptor: Close() returns bool
Diffstat (limited to 'src/system')
-rw-r--r--src/system/FileDescriptor.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/system/FileDescriptor.hxx b/src/system/FileDescriptor.hxx
index 673462389..c366f3cc0 100644
--- a/src/system/FileDescriptor.hxx
+++ b/src/system/FileDescriptor.hxx
@@ -133,8 +133,8 @@ public:
* "undefined" object. After this call, IsDefined() is guaranteed
* to return false, and this object may be reused.
*/
- void Close() {
- ::close(Steal());
+ bool Close() {
+ return ::close(Steal()) == 0;
}
/**