diff options
author | Max Kellermann <max@duempel.org> | 2015-03-03 23:04:22 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-03-03 23:04:25 +0100 |
commit | dd4beea44c6a574a25d1778e946f470683e1a0d6 (patch) | |
tree | 2210bb5b734ee5cf98af445f75767ab8b1c656f8 /src | |
parent | 5b48d597690bff2ecfccc71a66b9812e2bc98f03 (diff) | |
download | mpd-dd4beea44c6a574a25d1778e946f470683e1a0d6.tar.gz mpd-dd4beea44c6a574a25d1778e946f470683e1a0d6.tar.xz mpd-dd4beea44c6a574a25d1778e946f470683e1a0d6.zip |
system/FileDescriptor: Close() returns bool
Diffstat (limited to '')
-rw-r--r-- | src/system/FileDescriptor.hxx | 4 |
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; } /** |