From dd4beea44c6a574a25d1778e946f470683e1a0d6 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 3 Mar 2015 23:04:22 +0100 Subject: system/FileDescriptor: Close() returns bool --- src/system/FileDescriptor.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } /** -- cgit v1.2.3