"Fossies" - the Fresh Open Source Software Archive

Member "reptyr-reptyr-0.8.0/NOTES" (29 Sep 2020, 456 Bytes) of package /linux/privat/reptyr-reptyr-0.8.0.tar.gz:

As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    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