dup.2: Clarify what silent closing means

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2021-03-23 11:27:39 +01:00
parent 5c3611aa44
commit 8b339e35fa
1 changed files with 4 additions and 1 deletions

View File

@ -88,7 +88,10 @@ it uses the file descriptor number specified in
.IR newfd .
If the file descriptor
.IR newfd
was previously open, it is silently closed before being reused.
was previously open, it is closed before being reused;
the close is performed silently
(i.e., any errors during the close are not reported by
.BR dup2 ()).
.PP
The steps of closing and reusing the file descriptor
.IR newfd