summaryrefslogtreecommitdiff
path: root/usr.bin/truss/i386-linux.c
diff options
context:
space:
mode:
authorMatthew N. Dodd <mdodd@FreeBSD.org>2002-08-04 01:02:52 +0000
committerMatthew N. Dodd <mdodd@FreeBSD.org>2002-08-04 01:02:52 +0000
commitc03bfcc871d34aad4a41210a3f458531dc68f5c1 (patch)
tree68de8093cb515e71bf3ce5c2a2a03b522535281f /usr.bin/truss/i386-linux.c
parentec0bed25ba4846eacd23f88e176d37615776fba5 (diff)
downloadsrc-test2-c03bfcc871d34aad4a41210a3f458531dc68f5c1.tar.gz
src-test2-c03bfcc871d34aad4a41210a3f458531dc68f5c1.zip
Notes
Diffstat (limited to 'usr.bin/truss/i386-linux.c')
-rw-r--r--usr.bin/truss/i386-linux.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/usr.bin/truss/i386-linux.c b/usr.bin/truss/i386-linux.c
index e6a560a34a4e..f307c8017307 100644
--- a/usr.bin/truss/i386-linux.c
+++ b/usr.bin/truss/i386-linux.c
@@ -120,6 +120,13 @@ i386_linux_syscall_entry(struct trussinfo *trussinfo, int nargs) {
fprintf(trussinfo->outfile, "-- UNKNOWN SYSCALL %d\n", syscall);
}
+ if (lsc.name && (trussinfo->flags & FOLLOWFORKS)
+ && ((!strcmp(lsc.name, "linux_fork")
+ || !strcmp(lsc.name, "linux_vfork"))))
+ {
+ trussinfo->in_fork = 1;
+ }
+
if (nargs == 0)
return;