DragonFly BSD
DragonFly commits List (threaded) for 2011-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: sh: Reduce unnecessary forks with eval.


From: Peter Avalos <pavalos@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 21 Aug 2011 16:32:27 -0700 (PDT)

commit f15f366852663832eb02933efecc062dbff4bc59
Author: Peter Avalos <pavalos@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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]