Commit dd4beea4 authored by Max Kellermann's avatar Max Kellermann

system/FileDescriptor: Close() returns bool

parent 5b48d597
......@@ -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;
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment