X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=contrib%2Fpackage%2Fuhttpd%2Fsrc%2Fuhttpd.c;fp=contrib%2Fpackage%2Fuhttpd%2Fsrc%2Fuhttpd.c;h=401749faee05945e0212d3ff4e45e2dbe3600ce8;hp=ea4ca00c0aa45e2bcd26ad048fdb8d785a13b478;hb=d817ebf0070cd6c70b49fb3c4e13becb0544e429;hpb=fa712a0bc9ac90b2172877dc9835c38945838b39 diff --git a/contrib/package/uhttpd/src/uhttpd.c b/contrib/package/uhttpd/src/uhttpd.c index ea4ca00c0..401749fae 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);