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
|
* "undefined" object. After this call, IsDefined() is guaranteed
|
||||||
* to return false, and this object may be reused.
|
* to return false, and this object may be reused.
|
||||||
*/
|
*/
|
||||||
void Close() {
|
bool Close() {
|
||||||
::close(Steal());
|
return ::close(Steal()) == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user