From a272d1f6874172be618c70995947e44a9003aae6 Mon Sep 17 00:00:00 2001
From: Ian Lance Taylor
Date: Wed, 7 Jun 2023 17:11:50 -0700
Subject: [PATCH] doc/go1.21: mention NewFile on non-blocking descriptor
The returned descriptor now remains in non-blocking mode.
For #58408
For #60211
Change-Id: I88d33c180db642d055b4fed3b03a9afa02e746bd
Reviewed-on: https://go-review.googlesource.com/c/go/+/501699
Auto-Submit: Ian Lance Taylor
TryBot-Bypass: Ian Lance Taylor
Reviewed-by: Ian Lance Taylor
Reviewed-by: Bryan Mills
---
doc/go1.21.html | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/doc/go1.21.html b/doc/go1.21.html
index 4729fe9dfc..e22b753400 100644
--- a/doc/go1.21.html
+++ b/doc/go1.21.html
@@ -859,7 +859,11 @@ Do not send CLs removing the interior tags from such phrases.
- TODO: https://go.dev/cl/495079: os: if descriptor is non-blocking, retain that in Fd method
+ On Unix systems, if a non-blocking descriptor is passed
+ to NewFile
, calling
+ the File.Fd
method
+ will now return a non-blocking descriptor. Previously the
+ descriptor was converted to blocking mode.
--
2.50.0