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
3f63454e
Commit
3f63454e
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().
parent
3ed5c2a2
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 @
3f63454e
...
...
@@ -118,6 +118,10 @@ def fork():
if
(
slave_fd
>
STDERR_FILENO
):
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.
return
pid
,
master_fd
...
...
Misc/NEWS
View file @
3f63454e
...
...
@@ -70,6 +70,8 @@ Core and builtins
Extension Modules
-----------------
- Patch #838546: Make terminal become controlling in pty.fork()
- Patch #1560695: Add .note.GNU-stack to ctypes'
sysv
.
S
so
that
ctypes
isn
't considered as requiring executable stacks.
...
...
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