sh - Sync to FreeBSD d038ee76 part 2/2 (d)
authorMatthew Dillon <dillon@apollo.backplane.com>
Sun, 7 Jun 2015 02:44:29 +0000 (19:44 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sun, 7 Jun 2015 02:57:15 +0000 (19:57 -0700)
commitedd35de39a456c900054b66f8bbb0db6c0a25709
tree48ba57dffbdca2645be7dad025ac640e536dab05
parent69763be3ffe347efb62b152e074ebe2c4b310289
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.
bin/sh/input.c
bin/sh/jobs.c
bin/sh/main.c
bin/sh/redir.c
bin/sh/shell.h