aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}
/**