system/FileDescriptor: Close() returns bool
This commit is contained in:
parent
5b48d59769
commit
dd4beea44c
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user