]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Issue #19752: Fix "HAVE_DEV_PTMX" implementation of os.openpty()
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 25 Nov 2013 22:19:58 +0000 (23:19 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Mon, 25 Nov 2013 22:19:58 +0000 (23:19 +0100)
commit000de53624d7904d48caab7b315d2a52938fdb1d
tree3dda0c3f606891a3bf42d3903f5dc0f3d363aed4
parentb4a04fb7e6407d5107dba9aa2770554cc66de9bb
Issue #19752: Fix "HAVE_DEV_PTMX" implementation of os.openpty()

Regression introduced by the implementation of the PEP 446 (non-inheritable
file descriptors by default).

master_fd must be set non-inheritable after the creation of the slave_fd,
otherwise grantpt(master_fd) fails with EPERM (errno 13).
Modules/posixmodule.c