system/FileDescriptor: Close() returns bool

This commit is contained in:
Max Kellermann 2015-03-03 23:04:22 +01:00
parent 5b48d59769
commit dd4beea44c

View File

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