Skip to content

Commit

Permalink
doc/go1.21: mention NewFile on non-blocking descriptor
Browse files Browse the repository at this point in the history
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 <[email protected]>
TryBot-Bypass: Ian Lance Taylor <[email protected]>
Reviewed-by: Ian Lance Taylor <[email protected]>
Reviewed-by: Bryan Mills <[email protected]>
  • Loading branch information
ianlancetaylor authored and gopherbot committed Jun 8, 2023
1 parent 471561c commit a272d1f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion doc/go1.21.html
Original file line number Diff line number Diff line change
Expand Up @@ -859,7 +859,11 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
</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 -->
Expand Down

0 comments on commit a272d1f

Please sign in to comment.