From 13d02968bdb94ee7cca97746e55e626d7ac23931 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 13 Sep 2017 17:43:13 +0200 Subject: [PATCH] system/FileDescriptor: Close() should not be called on undefined object It does not do much harm - but it causes an unnecessary (failing) system call. --- src/system/FileDescriptor.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/FileDescriptor.hxx b/src/system/FileDescriptor.hxx index 3b6b0e59a..8e0f9177b 100644 --- a/src/system/FileDescriptor.hxx +++ b/src/system/FileDescriptor.hxx @@ -170,7 +170,7 @@ public: #endif /** - * Close the file descriptor. It is legal to call it on an + * Close the file descriptor. It should not be called on an * "undefined" object. After this call, IsDefined() is guaranteed * to return false, and this object may be reused. */