@@ -362,6 +362,7 @@ HTTP_LUA_SRCS=" \
362362 $ngx_addon_dir/src/ngx_http_lua_ssl.c \
363363 $ngx_addon_dir/src/ngx_http_lua_log_ringbuf.c \
364364 $ngx_addon_dir/src/ngx_http_lua_input_filters.c \
365+ $ngx_addon_dir/src/ngx_http_lua_pipe.c \
365366 "
366367
367368HTTP_LUA_DEPS=" \
@@ -424,6 +425,7 @@ HTTP_LUA_DEPS=" \
424425 $ngx_addon_dir/src/ngx_http_lua_ssl.h \
425426 $ngx_addon_dir/src/ngx_http_lua_log_ringbuf.h \
426427 $ngx_addon_dir/src/ngx_http_lua_input_filters.h \
428+ $ngx_addon_dir/src/ngx_http_lua_pipe.h \
427429 "
428430
429431CFLAGS="$CFLAGS -DNDK_SET_VAR"
@@ -525,6 +527,36 @@ CC_TEST_FLAGS="$SAVED_CC_TEST_FLAGS"
525527
526528# ----------------------------------------
527529
530+ ngx_feature="pipe2"
531+ ngx_feature_libs=
532+ ngx_feature_name="NGX_HTTP_LUA_HAVE_PIPE2"
533+ ngx_feature_run=no
534+ ngx_feature_incs="#include <fcntl.h>"
535+ ngx_feature_test="int fd[2]; pipe2(fd, O_CLOEXEC|O_NONBLOCK);"
536+ SAVED_CC_TEST_FLAGS="$CC_TEST_FLAGS"
537+ CC_TEST_FLAGS="-Werror -Wall $CC_TEST_FLAGS"
538+
539+ . auto/feature
540+
541+ CC_TEST_FLAGS="$SAVED_CC_TEST_FLAGS"
542+
543+ # ----------------------------------------
544+
545+ ngx_feature="signalfd"
546+ ngx_feature_libs=
547+ ngx_feature_name="NGX_HTTP_LUA_HAVE_SIGNALFD"
548+ ngx_feature_run=no
549+ ngx_feature_incs="#include <sys/signalfd.h>"
550+ ngx_feature_test="sigset_t set; signalfd(-1, &set, SFD_NONBLOCK|SFD_CLOEXEC);"
551+ SAVED_CC_TEST_FLAGS="$CC_TEST_FLAGS"
552+ CC_TEST_FLAGS="-Werror -Wall $CC_TEST_FLAGS"
553+
554+ . auto/feature
555+
556+ CC_TEST_FLAGS="$SAVED_CC_TEST_FLAGS"
557+
558+ # ----------------------------------------
559+
528560if test -n "$ngx_module_link"; then
529561 ngx_module_type=HTTP_AUX_FILTER
530562 ngx_module_name=$ngx_addon_name
0 commit comments