projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
uhttpd: properly initialize sigaction, restore SIGTERM for childs
[project/luci.git]
/
contrib
/
package
/
uhttpd
/
src
/
uhttpd.c
diff --git
a/contrib/package/uhttpd/src/uhttpd.c
b/contrib/package/uhttpd/src/uhttpd.c
index
ea4ca00
..
401749f
100644
(file)
--- 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);