make Program::Execute use posix_spawn on systems that support it,
authorChris Lattner <sabre@nondot.org>
Sun, 18 Apr 2010 04:14:37 +0000 (04:14 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 18 Apr 2010 04:14:37 +0000 (04:14 +0000)
commit4f098b68a50528b9f53a461ebea670ee935fb556
treee0161ae39fdecc2693f2f28f958787cadd583908
parent459e13a9cef943c582f55d26ce03a0dc7409edff
make Program::Execute use posix_spawn on systems that support it,
as it is more efficient than fork/exec.

Thanks to Eric for adding the autoconf check.  It would be nice if
a cmake guru could add a cmake check for posix_spawn as well.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101693 91177308-0d34-0410-b5e6-96231b3b80d8
lib/System/Unix/Program.inc