summaryrefslogtreecommitdiff
path: root/uhttpd.h
diff options
context:
space:
mode:
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-03-27 00:00:33 +0000
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-03-27 00:00:33 +0000
commit8bd776dcd165ec1b1d21811e642cf6b2b8483567 (patch)
treebea9734bf2bd993773596f37f2fa87c56516acc4 /uhttpd.h
parentb195c512dd67bae675f26c8414a64031a5edf60f (diff)
downloaduhttpd-8bd776dcd165ec1b1d21811e642cf6b2b8483567.tar.gz
[package] uhttpd:
- make script timeout configurable - catch SIGCHLD to properly interrupt select() - flag listen and client sockets as close-on-exec git-svn-id: svn://svn.openwrt.org/openwrt/trunk/package/uhttpd/src@20500 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'uhttpd.h')
-rw-r--r--uhttpd.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/uhttpd.h b/uhttpd.h
index bb08afa..0e9f1ee 100644
--- a/uhttpd.h
+++ b/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;