feature: added the socket_cloexec patch to ensure most of the nginx connections could be closed before child process terminates.

Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com>
This commit is contained in:
spacewander
2018-02-09 20:48:04 +08:00
committed by Yichun Zhang (agentzh)
parent 8d3ce00348
commit a4f399b3ac
2 changed files with 161 additions and 0 deletions

View File

@ -418,6 +418,10 @@ echo "$info_txt applying the safe_resolver_ipv6_option patch for nginx"
patch -p1 < $root/patches/nginx-$main_ver-safe_resolver_ipv6_option.patch || exit 1
echo
echo "$info_txt applying the socket_cloexec patch for nginx"
patch -p1 < $root/patches/nginx-$main_ver-socket_cloexec.patch || exit 1
echo
cp $root/html/index.html docs/html/ || exit 1
cp $root/html/50x.html docs/html/ || exit 1