Skip to content

Commit

Permalink
Document -T in reptyr(1)
Browse files Browse the repository at this point in the history
  • Loading branch information
nelhage committed Sep 17, 2014
1 parent c165d16 commit 93b1c51
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions reptyr.1
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,27 @@ the shell without doing so.

.SH OPTIONS

.B \-T
.IP
Use an alternate mode of attaching, "TTY-stealing". In this mode,
.B reptyr
will not
.BR ptrace (2)
the target process, but will attempt to discover the terminal emulator
for that process' pty, and steal the master end of the pty. This mode
is more reliable and flexible in many circumstances (for instance, it
can attach all processes on a tty, rather than just a single
process). However, as a downside, children of
.BR sshd(8)
cannot be attached via
.B -T
unless
.B reptyr
is run as root. See
.URL https://blog.nelhage.com/2014/08/new-reptyr-feature-tty-stealing/
for more information about tty-stealing.
.LP

.B \-l, \-L [COMMAND [ARGS]]
.IP
Instead of attaching to a new process, create a new pty pair, proxy the master
Expand Down

0 comments on commit 93b1c51

Please sign in to comment.