diff options
author | Roland McGrath <roland@redhat.com> | 2008-07-18 00:25:10 +0000 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 2008-07-18 00:25:10 +0000 |
commit | 41c48227a86a176da333f713d5047240885f25cc (patch) | |
tree | 1ab94d6c5d6df3086615833df5b9546488cad991 /strace.1 | |
parent | 8149e30526905769205833f1519860f40f55e935 (diff) | |
download | strace-41c48227a86a176da333f713d5047240885f25cc.tar.gz |
2008-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
Trace even VFORK on -f on all the platforms.
* strace.1 <-f>: Describe Linux catches new children immediately.
<-F>: Make the option obsolete. Move the SunOS VFORK comment to the
`-f' option description.
* defs.h (followvfork): Declaration removed.
* strace.c (followvfork): Variable removed.
(main) <-F>: Merge with the `-f' option.
(trace): Make !FOLLOWVFORK unconditional.
* process.c (internal_fork): Make !FOLLOWVFORK unconditional.
Diffstat (limited to 'strace.1')
-rw-r--r-- | strace.1 | 22 |
1 files changed, 10 insertions, 12 deletions
@@ -232,7 +232,9 @@ itself on the standard error. Trace child processes as they are created by currently traced processes as a result of the .BR fork (2) -system call. The new process is +system call. +.IP +On non-Linux platforms the new process is attached to as soon as its pid is known (through the return value of .BR fork (2) in the parent process). This means that such children may run @@ -240,13 +242,17 @@ uncontrolled for a while (especially in the case of a .BR vfork (2)), until the parent is scheduled again to complete its .RB ( v ) fork (2) -call. +call. On Linux the child is traced from its first instruction with no delay. If the parent process decides to .BR wait (2) for a child that is currently being traced, it is suspended until an appropriate child process either terminates or incurs a signal that would cause it to terminate (as determined from the child's current signal disposition). +.IP +On SunOS 4.x the tracing of +.BR vfork s +is accomplished with some dynamic linking trickery. .TP .B \-ff If the @@ -258,16 +264,8 @@ where pid is the numeric process id of each process. This is incompatible with -c, since no per-process counts are kept. .TP .B \-F -Attempt to follow -.BR vfork s. -(On SunOS 4.x, this is accomplished with -some dynamic linking trickery.) -Otherwise, -.BR vfork s -will -not be followed even if -.B \-f -has been given. +This option is now obsolete and it has the same functionality as +.BR -f . .TP .B \-h Print the help summary. |