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.
diff --git a/process.c b/process.c
index 6312213..a2109fe 100644
--- a/process.c
+++ b/process.c
@@ -989,8 +989,7 @@
#ifdef SYS_vfork
if (known_scno(tcp) == SYS_vfork) {
/* Attempt to make vfork into fork, which we can follow. */
- if (!followvfork ||
- change_syscall(tcp, SYS_fork) < 0)
+ if (change_syscall(tcp, SYS_fork) < 0)
dont_follow = 1;
}
#endif