summaryrefslogtreecommitdiffhomepage
path: root/contrib/package/uhttpd/src/uhttpd.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-03-21 20:52:41 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-03-21 20:52:41 +0000
commitd817ebf0070cd6c70b49fb3c4e13becb0544e429 (patch)
tree35c44df1e2f168da2e360228e6acce0c5eacef23 /contrib/package/uhttpd/src/uhttpd.c
parentfa712a0bc9ac90b2172877dc9835c38945838b39 (diff)
uhttpd: properly initialize sigaction, restore SIGTERM for childs
Diffstat (limited to 'contrib/package/uhttpd/src/uhttpd.c')
-rw-r--r--contrib/package/uhttpd/src/uhttpd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/package/uhttpd/src/uhttpd.c b/contrib/package/uhttpd/src/uhttpd.c
index ea4ca00c0a..401749faee 100644
--- a/contrib/package/uhttpd/src/uhttpd.c
+++ b/contrib/package/uhttpd/src/uhttpd.c
@@ -423,6 +423,9 @@ int main (int argc, char **argv)
FD_ZERO(&read_fds);
/* handle SIGPIPE, SIGCHILD */
+ sa.sa_flags = 0;
+ sigemptyset(&sa.sa_mask);
+
sa.sa_handler = SIG_IGN;
sigaction(SIGPIPE, &sa, NULL);
sigaction(SIGCHLD, &sa, NULL);