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; } /**