git: sh - Sync to FreeBSD d038ee76 part 2/2 (d)

Matthew Dillon dillon at crater.dragonflybsd.org
Sat Jun 6 19:57:22 PDT 2015


commit edd35de39a456c900054b66f8bbb0db6c0a25709
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sat Jun 6 19:44:29 2015 -0700

    sh - Sync to FreeBSD d038ee76 part 2/2 (d)
    
    Reapply 330497ceac - fix O_CLOEXEC race in open() and fhopen()
    
    * Fix an O_CLOEXEC race where a fork/exec can race an open(...O_CLOEXEC)
      and improperly inherit the descriptor.

Summary of changes:
 bin/sh/input.c |  7 +++++--
 bin/sh/jobs.c  | 15 +++++++++++----
 bin/sh/main.c  |  2 +-
 bin/sh/redir.c |  7 ++++++-
 bin/sh/shell.h | 16 ++++++++++++++++
 5 files changed, 39 insertions(+), 8 deletions(-)

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


-- 
DragonFly BSD source repository



More information about the Commits mailing list