bpo-41818: Add os.login_tty() for *nix.#23740
Conversation
|
@asvetlov Here is the implementation of Edit: This will help us make the code in "Lib/pty.py" and "Lib/test/test_pty.py" much simpler. cc: @ethanfurman @aeros @gpshead |
Sorry, something went wrong.
|
@zoulasc Sir, can you please take a look at the changes that I made to posixmodule.c? |
Sorry, something went wrong.
Signed-off-by: Soumendra Ganguly <soumendraganguly@gmail.com>
|
There were 2 commits that only changed the wording in the news file; rebased to have a single commit. |
Sorry, something went wrong.
|
This PR is stale because it has been open for 30 days with no activity. |
Sorry, something went wrong.
|
Still waiting for core review. |
Sorry, something went wrong.
|
This PR is stale because it has been open for 30 days with no activity. |
Sorry, something went wrong.
Signed-off-by: Soumendra Ganguly <soumendraganguly@gmail.com>
|
I see a merge conflict now. Please fix. |
Sorry, something went wrong.
Signed-off-by: Soumendra Ganguly <soumendraganguly@gmail.com>
|
@asvetlov @gpshead The merge conflict in |
Sorry, something went wrong.
This follows #23536. Also, see #23546, #23686.
os.login_tty()calls the nativelogin_tty()when it is available; otherwise, ifsetsid()is available and ifTIOCSCTTYorttyname()are available, it runs generic code to emulatelogin_tty().Post #23686, #23546, #23740 goals:
test_winsize()to "Lib/test/test_pty.py";Signed-off-by: Soumendra Ganguly soumendraganguly@gmail.com
https://bugs.python.org/issue41818