Author soumendra
Recipients soumendra, twouters
Date 2020-08-16.16:14:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1597594448.25.0.55912218338.issue41541@roundup.psfhosted.org>
In-reply-to
Content
Further proposal: Rename my _login_tty to login_tty and make it available as a part of the pty library. Note that usually login_tty accompanies openpty and forkpty on a system; for example, see

https://www.man7.org/linux/man-pages/man3/login_tty.3.html
https://man.openbsd.org/login_tty
https://netbsd.gw.com/cgi-bin/man-cgi?login_tty++NetBSD-current

However, python's pty only offers openpty and forkpty in the form of pty.openpty and pty.fork respectively. While it is true that forkpty [ pty.fork ] combines openpty, fork, and login_tty, it also closes the slave end of the pty, making it unsuitable for situations where the slave end needs to be kept open; for example, in my patch, the slave end is used to set the window size; or, in case someone wants to do even better and register a SIGWINCH handler for situations in which the window size can change.
History
Date User Action Args
2020-08-16 16:14:08soumendrasetrecipients: + soumendra, twouters
2020-08-16 16:14:08soumendrasetmessageid: <1597594448.25.0.55912218338.issue41541@roundup.psfhosted.org>
2020-08-16 16:14:08soumendralinkissue41541 messages
2020-08-16 16:14:08soumendracreate