dup.2: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2020-06-10 11:48:44 +02:00
parent 73942082f2
commit 9562b9aee5
1 changed files with 23 additions and 21 deletions

View File

@ -247,6 +247,7 @@ before calling
because of the race condition described above.
Instead, code something like the following could be used:
.PP
.in +4n
.EX
/* Obtain a duplicate of 'newfd' that can subsequently
be used to check for close() errors; an EBADF error
@ -272,6 +273,7 @@ Instead, code something like the following could be used:
}
}
.EE
.in
.SH SEE ALSO
.BR close (2),
.BR fcntl (2),