File: NOTES

package info (click to toggle)
reptyr 0.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 328 kB
  • sloc: ansic: 2,576; python: 76; makefile: 62; sh: 46
file content (13 lines) | stat: -rw-r--r-- 456 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
Attaching:
 - Find an fd corresponding to the tty in the child
 - Open the new pty in the child
 - Copy the termios settings over
 - dup() it over the old ones
 - Make the new tty the controlling tty:
  - Fork a dummy child
  - Find all processes in the child's process group.
   - For each one, move them to the dummy child's process group
  - Make the child setsid()
  - Set the terminal as the controlling tty
 - Close the newly allocated tty
 - Detach