[1/1] site/common-linux: move ac_cv_o_nonblock_inherited to site/common-linux

Submitted by rongqing.li@windriver.com on Nov. 29, 2012, 9:19 a.m. | Patch ID: 39867


Message ID 0a61d188f8bbe8e62bbc4b3b7006dfd4e4bde9c0.1354180595.git.rongqing.li@windriver.com
State Accepted
Commit edd8d597717b39086316eb25699e7e2a64634d7d
Headers show

Commit Message

rongqing.li@windriver.com Nov. 29, 2012, 9:19 a.m.
From: "Roy.Li" <rongqing.li@windriver.com>

When compiling apr for no-powerpc arch, the flag ac_cv_o_nonblock_inherited
is always set to yes in cross compiling environment. This flag is intended to
think the socket, returned from accept(), inherit file status flags such as
O_NONBLOCK from the listening socket, but socket never inherits file status
from the listening socket on Linux (more information to man accept).

This is Linux-wide behaviour, so move it from meta/site/powerpc32-linux
to site/common-linux.

If ac_cv_o_nonblock_inherited is set to yes on Linux, clients can not access the
same ip address(URL) with Apache web server via http(port 80) and https(port443)
without redirection

Signed-off-by: Roy.Li <rongqing.li@windriver.com>
 meta/site/common-linux    |    3 +++
 meta/site/powerpc32-linux |    1 -
 2 files changed, 3 insertions(+), 1 deletions(-)

Patch hide | download patch | download mbox

diff --git a/meta/site/common-linux b/meta/site/common-linux
index 8a9146e..8b5be68 100644
--- a/meta/site/common-linux
+++ b/meta/site/common-linux
@@ -47,3 +47,6 @@  tcl_cv_api_serial=${tcl_cv_api_serial=termios}
 # python
+# apache
diff --git a/meta/site/powerpc32-linux b/meta/site/powerpc32-linux
index 4550df3..251bffe 100644
--- a/meta/site/powerpc32-linux
+++ b/meta/site/powerpc32-linux
@@ -212,7 +212,6 @@  ac_cv_socklen_t=${ac_cv_socklen_t=yes}
 # binutils (libiberty)