diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-03-21 20:52:41 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-03-21 20:52:41 +0000 |
commit | d817ebf0070cd6c70b49fb3c4e13becb0544e429 (patch) | |
tree | 35c44df1e2f168da2e360228e6acce0c5eacef23 /contrib/package/uhttpd/src/uhttpd.c | |
parent | fa712a0bc9ac90b2172877dc9835c38945838b39 (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.c | 3 |
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); |