| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Signed-off-by: Soumendra Ganguly <soumendraganguly@gmail.com>
|
@asvetlov @gpshead I closed #23740 and created this because that one had several merge conflicts and unnecessary new content in configure script due to the lack of the "autoconf-archive" package on my system. The C code/documentation changes remain unchanged. Please take a look at this when you have time. Edit: a gentle request for core review; no rush :) |
Sorry, something went wrong.
|
I have resolved the conflicts for you. You have to pull the changes to your computer, regenerate the clinic and configure scripts and then commit the changes. You also need to re-add utmp.h to the list of headers. |
Sorry, something went wrong.
|
@tiran Thank you so much for your help. I will look into this very soon. Edit: I have made the changes :) |
Sorry, something went wrong.
Signed-off-by: Soumendra Ganguly <soumendraganguly@gmail.com>
Signed-off-by: Soumendra Ganguly <soumendraganguly@gmail.com>
Signed-off-by: Soumendra Ganguly <soumendraganguly@gmail.com>
Signed-off-by: Soumendra Ganguly <soumendraganguly@gmail.com>
There was a problem hiding this comment.
413 tests OK.
19 tests skipped:
Tests result: SUCCESS
Also test_pty
Sorry, something went wrong.
There was a problem hiding this comment.
Looks ok
Sorry, something went wrong.
|
@MaxwellDupre Thank you for the review. |
Sorry, something went wrong.
Signed-off-by: Soumendra Ganguly <soumendraganguly@gmail.com>
Signed-off-by: Soumendra Ganguly <soumendraganguly@gmail.com>
|
@gpshead I have made the requested changes; please review again. You can ignore the other comments that I made. The following are the answers to your questions/requests; sorry for the slightly long response; I just wanted to provide you with all the information that I gathered. QUESTION1: aren't there potentially some successful dup2 calls to clean up from in this error case? QUESTION2: add a comment as to why this is opened to check for an error and immediately closed.
the bold part if a session leader has no controlling terminal is why the glibc implementation first attempts to close() 0,1,2 before opening the tty device; but that means that further errors cannot be reported until the dup2(fd, 2) succeeds (if at all) since stderr is closed. |
Sorry, something went wrong.
|
Thanks for making the requested changes! @gpshead: please review the changes made to this pull request. |
Sorry, something went wrong.
There was a problem hiding this comment.
It needs another merge and clinic output regeneration. otherwise this is good.
Sorry, something went wrong.
|
@gpshead Thank you for the clinic output regeneration :) |
Sorry, something went wrong.
|
@gpshead Thank you for the merge. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This follows #23536. Also, see #23546, #23686.
os.login_tty() calls the native login_tty() when it is available; otherwise, if setsid() is available and if TIOCSCTTY or ttyname() are available, it runs generic code to emulate login_tty().
Post #23686, #23546, #23740 goals:
Signed-off-by: Soumendra Ganguly soumendraganguly@gmail.com
https://bugs.python.org/issue41818