diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-03-27 00:00:33 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-03-27 00:00:33 +0000 |
commit | 8c9b818a24045c15f40fc415cd1dde78c438555a (patch) | |
tree | a4f379b54fac4e4d63352eabd506927395f8c19f /package/uhttpd/src/uhttpd.h | |
parent | d7195c229316346aae4ba5617c20308863a855c5 (diff) | |
download | upstream-8c9b818a24045c15f40fc415cd1dde78c438555a.tar.gz upstream-8c9b818a24045c15f40fc415cd1dde78c438555a.tar.bz2 upstream-8c9b818a24045c15f40fc415cd1dde78c438555a.zip |
uhttpd: - make script timeout configurable - catch SIGCHLD to properly interrupt select() - flag listen and client sockets as close-on-exec
SVN-Revision: 20500
Diffstat (limited to 'package/uhttpd/src/uhttpd.h')
-rw-r--r-- | package/uhttpd/src/uhttpd.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/package/uhttpd/src/uhttpd.h b/package/uhttpd/src/uhttpd.h index bb08afa1a1..0e9f1ee886 100644 --- a/package/uhttpd/src/uhttpd.h +++ b/package/uhttpd/src/uhttpd.h @@ -26,6 +26,7 @@ #include <sys/types.h> #include <sys/socket.h> #include <sys/select.h> +#include <sys/wait.h> #include <netinet/in.h> #include <arpa/inet.h> #include <linux/limits.h> @@ -73,6 +74,9 @@ struct config { void (*lua_close) (lua_State *L); void (*lua_request) (struct client *cl, struct http_request *req, lua_State *L); #endif +#if defined(HAVE_CGI) || defined(HAVE_LUA) + int script_timeout; +#endif #ifdef HAVE_TLS char *cert; char *key; |