summaryrefslogtreecommitdiff
path: root/uhttpd-utils.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-utils.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-utils.h')
-rw-r--r--uhttpd-utils.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/uhttpd-utils.h b/uhttpd-utils.h
index c7a6c90..43a74e5 100644
--- a/uhttpd-utils.h
+++ b/uhttpd-utils.h
@@ -33,6 +33,9 @@
#define foreach_header(i, h) \
for( i = 0; (i + 1) < (sizeof(h) / sizeof(h[0])) && h[i]; i += 2 )
+#define fd_cloexec(fd) \
+ fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC)
+
struct path_info {
char *root;
char *phys;