[build] check for pipe2() at configure time
commit22ca2778a8cab9040a7f0809169d6076027d21bf
authorGlenn Strauss <gstrauss@gluelogic.com>
Sat, 17 Dec 2016 22:58:34 +0000 (17 17:58 -0500)
committerGlenn Strauss <gstrauss@gluelogic.com>
Sat, 17 Dec 2016 23:07:42 +0000 (17 18:07 -0500)
treefad51b37ca6a76eadb923c932aa23640f786e221
parent9619d643ff27085e5d59d14a3c2abe4864bdaa2d
[build] check for pipe2() at configure time

Lack of pipe2() on relic Unix as well as missing on Mac OSX is likely
one reason why threaded web servers such as nginx choose not to support
CGI except via an external service to the process.  Without pipe2(),
race conditions exist and it is not safe for a threaded server to use
pipe() and fork() when the server also does not want to potentially leak
open file descriptors to various unrelated CGI scripts.
SConstruct
configure.ac
src/CMakeLists.txt
src/mod_cgi.c