Mercurial > illumos > illumos-gate
changeset 5355:ac0029323992
6507622 truss -f -u shouldn't always reset traps in a parent following a vfork
author | rh87107 |
---|---|
date | Mon, 29 Oct 2007 12:24:43 -0700 |
parents | 6a5fbc95cd48 |
children | c1be085ba773 |
files | usr/src/cmd/truss/main.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/cmd/truss/main.c Mon Oct 29 11:17:10 2007 -0700 +++ b/usr/src/cmd/truss/main.c Mon Oct 29 12:24:43 2007 -0700 @@ -20,7 +20,7 @@ */ /* - * Copyright 2006 Sun Microsystems, Inc. All rights reserved. + * Copyright 2007 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -1322,7 +1322,7 @@ * If the child messes with the breakpoints and * this is vfork(), we have to set them again. */ - if (Dynpat != NULL && is_vfork_child) + if (Dynpat != NULL && is_vfork_child && !fflag) reset_traps = TRUE; is_vfork_child = FALSE; }