]> Cypherpunks.ru repositories - gostls13.git/commitdiff
doc/go1.21: mention NewFile on non-blocking descriptor
authorIan Lance Taylor <iant@golang.org>
Thu, 8 Jun 2023 00:11:50 +0000 (17:11 -0700)
committerGopher Robot <gobot@golang.org>
Thu, 8 Jun 2023 16:48:20 +0000 (16:48 +0000)
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 <iant@google.com>
TryBot-Bypass: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
doc/go1.21.html

index 4729fe9dfcf3414ae5ccaca9e2958e46815a4099..e22b75340081c32a3ccc03d3fdd1c21935be9c4a 100644 (file)
@@ -859,7 +859,11 @@ Do not send CLs removing the interior tags from such phrases.
     </p>
 
     <p><!-- CL 495079 -->
-      TODO: <a href="https://go.dev/cl/495079">https://go.dev/cl/495079</a>: os: if descriptor is non-blocking, retain that in Fd method
+      On Unix systems, if a non-blocking descriptor is passed
+      to <a href="/pkg/os/#NewFile"><code>NewFile</code></a>, calling
+      the <a href="/pkg/os/#File.Fd"><code>File.Fd</code></a> method
+      will now return a non-blocking descriptor. Previously the
+      descriptor was converted to blocking mode.
     </p>
 
     <p><!-- CL 477215 -->