]> granicus.if.org Git - strace/commitdiff
Document -C/-D
authorAndreas Schwab <schwab@redhat.com>
Fri, 11 Jun 2010 13:49:36 +0000 (15:49 +0200)
committerAndreas Schwab <schwab@redhat.com>
Thu, 24 Jun 2010 15:14:01 +0000 (17:14 +0200)
* strace.c (usage): Document -C.
* strace.1: Document -D.

strace.1
strace.c

index a98b9f99676d11f8d54cd6e4293c9885e14d25d7..95fee6434af37ddb6bfe19b4d70e5752f012b5a2 100644 (file)
--- a/strace.1
+++ b/strace.1
@@ -43,7 +43,7 @@ strace \- trace system calls and signals
 .SH SYNOPSIS
 .B strace
 [
-.B \-CdffhiqrtttTvxx
+.B \-CdDffhiqrtttTvxx
 ]
 [
 .BI \-a column
@@ -84,6 +84,9 @@ strace \- trace system calls and signals
 .B strace
 .B \-c
 [
+.B \-D
+]
+[
 .BI \-e expr
 ]
 \&...
@@ -255,6 +258,13 @@ Like
 .B \-c
 but also print regular output while processes are running.
 .TP
+.B \-D
+(Not available on SVR4 and FreeBSD.)
+Run tracer process as a detached grandchild, not as parent of the
+tracee.  This reduces the visible effect of
+.B strace
+by keeping the tracee a direct child of the calling process.
+.TP
 .B \-d
 Show some debugging output of
 .B strace
index 40f89072517d75264d6b776e0401b671c020d14b..c83d8af0158b63e57c22e45f61aa169ce61afc53 100644 (file)
--- a/strace.c
+++ b/strace.c
@@ -168,12 +168,13 @@ FILE *ofp;
 int exitval;
 {
        fprintf(ofp, "\
-usage: strace [-dffhiqrtttTvVxx] [-a column] [-e expr] ... [-o file]\n\
+usage: strace [-CdDffhiqrtttTvVxx] [-a column] [-e expr] ... [-o file]\n\
               [-p pid] ... [-s strsize] [-u username] [-E var=val] ...\n\
               [command [arg ...]]\n\
-   or: strace -c -D [-e expr] ... [-O overhead] [-S sortby] [-E var=val] ...\n\
+   or: strace -c [-D] [-e expr] ... [-O overhead] [-S sortby] [-E var=val] ...\n\
               [command [arg ...]]\n\
 -c -- count time, calls, and errors for each syscall and report summary\n\
+-C -- like -c but also print regular output while processes are running\n\
 -f -- follow forks, -ff -- with output into separate files\n\
 -F -- attempt to follow vforks, -h -- print help message\n\
 -i -- print instruction pointer at time of syscall\n\
@@ -746,7 +747,6 @@ main(int argc, char *argv[])
                        debug++;
                        break;
 #ifndef USE_PROCFS
-               /* Experimental, not documented in manpage yet. */
                case 'D':
                        daemonized_tracer = 1;
                        break;