Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 14 lines (13 sloc) 0.456 kB
8afd56e @nelhage Check in my NOTES file.
authored
1 Attaching:
2 - Find an fd corresponding to the tty in the child
3 - Open the new pty in the child
4 - Copy the termios settings over
5 - dup() it over the old ones
6 - Make the new tty the controlling tty:
7 - Fork a dummy child
8 - Find all processes in the child's process group.
9 - For each one, move them to the dummy child's process group
10 - Make the child setsid()
11 - Set the terminal as the controlling tty
12 - Close the newly allocated tty
13 - Detach
Something went wrong with that request. Please try again.