Name
dup2
Synopsis
dup2(fd
,fd2
)
Duplicates file descriptor fd
to file
descriptor fd2
. If file descriptor
fd2
is already open,
dup2
first closes fd2
.
Get Python in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.