Use spawnve on cygwin.
commitcf949dce429d4df3e241bd21b90b402031e84aaa
authorRichard Henderson <rth@redhat.com>
Thu, 4 Nov 2010 23:41:20 +0000 (4 23:41 +0000)
committerRichard Henderson <rth@redhat.com>
Thu, 4 Nov 2010 23:41:20 +0000 (4 23:41 +0000)
treeacf3bc7016641aa1bccc48575e5cd89cba7b2f63
parent92083967cd42d0ba94bdec7e333068f849e2b4a6
Use spawnve on cygwin.

* configure.ac (AC_CHECK_HEADERS): Add process.h.
(checkfuncs): Add dup3, spawnve, spawnvpe; sort the list.
(AC_CHECK_FUNCS): Add dup3, spawnve, spawnvpe.
* configure, config.in: Rebuild.
* pex-unix.c [HAVE_SPAWNVE] (pex_unix_exec_child): New function.
[HAVE_SPAWNVE] (save_and_install_fd, restore_fd): New functions.
libiberty/ChangeLog
libiberty/config.in
libiberty/configure
libiberty/configure.ac
libiberty/pex-unix.c