Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
b2bba739
Commit
b2bba739
authored
Nov 09, 2006
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch #838546: Make terminal become controlling in pty.fork().
Will backport to 2.5.
parent
394ae90d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
Lib/pty.py
Lib/pty.py
+4
-0
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Lib/pty.py
View file @
b2bba739
...
@@ -118,6 +118,10 @@ def fork():
...
@@ -118,6 +118,10 @@ def fork():
if
(
slave_fd
>
STDERR_FILENO
):
if
(
slave_fd
>
STDERR_FILENO
):
os
.
close
(
slave_fd
)
os
.
close
(
slave_fd
)
# Explicitly open the tty to make it become a controlling tty.
tmp_fd
=
os
.
open
(
os
.
ttyname
(
STDOUT_FILENO
),
os
.
O_RDWR
)
os
.
close
(
tmp_fd
)
# Parent and child process.
# Parent and child process.
return
pid
,
master_fd
return
pid
,
master_fd
...
...
Misc/NEWS
View file @
b2bba739
...
@@ -96,6 +96,8 @@ Core and builtins
...
@@ -96,6 +96,8 @@ Core and builtins
Library
Library
-------
-------
- Patch #838546: Make terminal become controlling in pty.fork()
- Patch #1351744: Add askyesnocancel helper for tkMessageBox.
- Patch #1351744: Add askyesnocancel helper for tkMessageBox.
- Patch #1060577: Extract list of RPM files from spec file in
- Patch #1060577: Extract list of RPM files from spec file in
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment