Avoid initializing posix_spawn_file_actions_t if not used.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sun, 20 Mar 2011 15:52:24 +0000 (15:52 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sun, 20 Mar 2011 15:52:24 +0000 (15:52 +0000)
commited8f9589a8767d3a61aeda6661b74891df80fa18
tree2546b529cf2814f766dc35075a213965a708d8df
parentb518c25b3e3ec03da389ca48910ded42ca1305e3
Avoid initializing posix_spawn_file_actions_t if not used.

- glibc falls back to fork+exec if a file actions object is present.
- On BSDs this saves a malloc.

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