os.dup2(fd, fd2, inheritable=True)
Duplicate file descriptor fd to fd2, closing the latter first if necessary. The file descriptor fd2 is inheritable by default, or non-inheritable if inheritable is False
.
Changed in version 3.4: Add the optional inheritable parameter.
Please login to continue.