git: sh: Reduce unnecessary forks with eval.

Peter Avalos pavalos at crater.dragonflybsd.org
Sun Aug 21 16:33:34 PDT 2011


commit f15f366852663832eb02933efecc062dbff4bc59
Author: Peter Avalos <pavalos at dragonflybsd.org>
Date:   Sun Aug 21 14:36:38 2011 -0700

    sh: Reduce unnecessary forks with eval.
    
    The eval special builtin now runs the code with EV_EXIT if it was run
    with EV_EXIT itself.
    
    In particular, this eliminates one fork when a command substitution
    contains an eval command that ends with an external program or a
    subshell.
    
    Obtained-from:   FreeBSD 223163

Summary of changes:
 bin/sh/eval.c                                  |    5 +++--
 tools/regression/bin/sh/expansion/cmdsubst11.0 |    5 +++++
 2 files changed, 8 insertions(+), 2 deletions(-)
 create mode 100644 tools/regression/bin/sh/expansion/cmdsubst11.0

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/f15f366852663832eb02933efecc062dbff4bc59


-- 
DragonFly BSD source repository





More information about the Commits mailing list