Use spawnve on cygwin.
authorRichard Henderson <rth@redhat.com>
Thu, 4 Nov 2010 23:41:21 +0000 (23:41 +0000)
committerRichard Henderson <rth@redhat.com>
Thu, 4 Nov 2010 23:41:21 +0000 (23:41 +0000)
commit9c55e0647658a618fb8fbaf8feb5c5737e28bf20
treeb9817c1e178eed6cb0f9f800eb29852102ea59bd
parentf445451a1f3478f43f5a08cf2487ee66cec3bcf3
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