MFC r285842: truss: follow pdfork()ed descendents with -f
This commit is contained in:
parent
8c79292e68
commit
5264296ce4
@ -158,6 +158,7 @@ amd64_syscall_entry(struct trussinfo *trussinfo, int nargs)
|
||||
|
||||
if (fsc->name && (trussinfo->flags & FOLLOWFORKS) &&
|
||||
(strcmp(fsc->name, "fork") == 0 ||
|
||||
strcmp(fsc->name, "pdfork") == 0 ||
|
||||
strcmp(fsc->name, "rfork") == 0 ||
|
||||
strcmp(fsc->name, "vfork") == 0))
|
||||
trussinfo->curthread->in_fork = 1;
|
||||
|
@ -165,6 +165,7 @@ amd64_fbsd32_syscall_entry(struct trussinfo *trussinfo, int nargs)
|
||||
|
||||
if (fsc->name && (trussinfo->flags & FOLLOWFORKS) &&
|
||||
(strcmp(fsc->name, "fork") == 0 ||
|
||||
strcmp(fsc->name, "pdfork") == 0 ||
|
||||
strcmp(fsc->name, "rfork") == 0 ||
|
||||
strcmp(fsc->name, "vfork") == 0))
|
||||
trussinfo->curthread->in_fork = 1;
|
||||
|
@ -172,6 +172,7 @@ arm_syscall_entry(struct trussinfo *trussinfo, int nargs)
|
||||
|
||||
if (fsc->name && (trussinfo->flags & FOLLOWFORKS) &&
|
||||
(strcmp(fsc->name, "fork") == 0 ||
|
||||
strcmp(fsc->name, "pdfork") == 0 ||
|
||||
strcmp(fsc->name, "rfork") == 0 ||
|
||||
strcmp(fsc->name, "vfork") == 0))
|
||||
trussinfo->curthread->in_fork = 1;
|
||||
|
@ -162,6 +162,7 @@ i386_syscall_entry(struct trussinfo *trussinfo, int nargs)
|
||||
|
||||
if (fsc->name && (trussinfo->flags & FOLLOWFORKS) &&
|
||||
(strcmp(fsc->name, "fork") == 0 ||
|
||||
strcmp(fsc->name, "pdfork") == 0 ||
|
||||
strcmp(fsc->name, "rfork") == 0 ||
|
||||
strcmp(fsc->name, "vfork") == 0))
|
||||
trussinfo->curthread->in_fork = 1;
|
||||
|
@ -155,6 +155,7 @@ mips_syscall_entry(struct trussinfo *trussinfo, int nargs)
|
||||
|
||||
if (fsc->name && (trussinfo->flags & FOLLOWFORKS) &&
|
||||
(strcmp(fsc->name, "fork") == 0 ||
|
||||
strcmp(fsc->name, "pdfork") == 0 ||
|
||||
strcmp(fsc->name, "rfork") == 0 ||
|
||||
strcmp(fsc->name, "vfork") == 0))
|
||||
trussinfo->curthread->in_fork = 1;
|
||||
|
@ -169,6 +169,7 @@ powerpc_syscall_entry(struct trussinfo *trussinfo, int nargs)
|
||||
|
||||
if (fsc->name && (trussinfo->flags & FOLLOWFORKS) &&
|
||||
(strcmp(fsc->name, "fork") == 0 ||
|
||||
strcmp(fsc->name, "pdfork") == 0 ||
|
||||
strcmp(fsc->name, "rfork") == 0 ||
|
||||
strcmp(fsc->name, "vfork") == 0))
|
||||
trussinfo->curthread->in_fork = 1;
|
||||
|
@ -157,6 +157,7 @@ powerpc64_syscall_entry(struct trussinfo *trussinfo, int nargs)
|
||||
|
||||
if (fsc->name && (trussinfo->flags & FOLLOWFORKS) &&
|
||||
(strcmp(fsc->name, "fork") == 0 ||
|
||||
strcmp(fsc->name, "pdfork") == 0 ||
|
||||
strcmp(fsc->name, "rfork") == 0 ||
|
||||
strcmp(fsc->name, "vfork") == 0))
|
||||
trussinfo->curthread->in_fork = 1;
|
||||
|
@ -161,6 +161,7 @@ sparc64_syscall_entry(struct trussinfo *trussinfo, int nargs)
|
||||
|
||||
if (fsc->name && (trussinfo->flags & FOLLOWFORKS) &&
|
||||
(strcmp(fsc->name, "fork") == 0 ||
|
||||
strcmp(fsc->name, "pdfork") == 0 ||
|
||||
strcmp(fsc->name, "rfork") == 0 ||
|
||||
strcmp(fsc->name, "vfork") == 0))
|
||||
trussinfo->curthread->in_fork = 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user