Mercurial > hg > nginx
diff auto/os/freebsd @ 376:d0451e402e27
nginx-0.0.7-2004-07-05-10:55:54 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 05 Jul 2004 06:55:54 +0000 |
parents | 0fb6c53fb135 |
children | 42d11f017717 |
line wrap: on
line diff
--- a/auto/os/freebsd +++ b/auto/os/freebsd @@ -54,8 +54,26 @@ if [ \( $version -lt 500000 -a $version -o $version -ge 500018 ] then echo " + using kqueue's NOTE_LOWAT" + have=HAVE_LOWAT_EVENT . auto/have +fi - have=HAVE_LOWAT_EVENT . auto/have + +if [ $USE_THREADS = "rfork" ]; then + + echo " + using rfork()" + + # kqueue's EVFILT_SIGNAL is safe + + if [ $version -gt 460101 ]; then + echo " + kqueue's EVFILT_SIGNAL is safe" + have=HAVE_SAFE_EVFILT_SIGNAL . auto/have + else + echo "$0: error: the kqueue's EVFILT_SIGNAL is unsafe on this" + echo "FreeBSD version, so --with-threads=rfork could not be used" + echo + + exit 1 + fi fi