Permalink
Browse files

Make the man page and -h both mention all available options.

Reported-by: Michael Orlitzky <michael@orlitzky.com>
  • Loading branch information...
1 parent 568c654 commit 66888f4514e5e20a4c1972bf2459ede5f966a769 @nelhage committed Apr 25, 2011
Showing with 13 additions and 0 deletions.
  1. +11 −0 reptyr.1
  2. +2 −0 reptyr.c
View
@@ -56,6 +56,17 @@ be passed to e.g.
option.
.LP
+.B \-s
+.IP
+
+By default, reptyr will move any file descriptors in the target that were
+connected to the target's controlling terminal to point to the new terminal. The
+.B -s
+option will cause reptyr to unconditionally attach file descriptors 0, 1, and 2
+in the target, even if the target has no controlling terminal or they are not
+connected to a terminal.
+.LP
+
.B \-v
.IP
Print the version of
View
@@ -143,6 +143,8 @@ void usage(char *me) {
fprintf(stderr, " %s -l\n", me);
fprintf(stderr, " -l Create a new pty pair and print the name of the slave.\n");
fprintf(stderr, " -s Attach fds 0-2 on the target, even if it is not attached to a tty.\n");
+ fprintf(stderr, " -h Print this help message and exit.\n");
+ fprintf(stderr, " -v Print the version number and exit.\n");
}
void check_yama_ptrace_scope(void) {

0 comments on commit 66888f4

Please sign in to comment.