aboutsummaryrefslogtreecommitdiffstats
path: root/package/uhttpd/src/uhttpd-utils.h
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-03-27 00:00:33 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-03-27 00:00:33 +0000
commit8c9b818a24045c15f40fc415cd1dde78c438555a (patch)
treea4f379b54fac4e4d63352eabd506927395f8c19f /package/uhttpd/src/uhttpd-utils.h
parentd7195c229316346aae4ba5617c20308863a855c5 (diff)
downloadupstream-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-utils.h')
-rw-r--r--package/uhttpd/src/uhttpd-utils.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/uhttpd/src/uhttpd-utils.h b/package/uhttpd/src/uhttpd-utils.h
index c7a6c90beb..43a74e5616 100644
--- a/package/uhttpd/src/uhttpd-utils.h
+++ b/package/uhttpd/src/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;