disable sigpipe for android in server
@@ -593,6 +593,10 @@ bool CHttpServer::init()
return false;
}
+#if defined(OS_ANDROID)
+ signal(SIGPIPE, SIG_IGN);
+#endif
+
struct sockaddr_in sa;
memset(&sa, 0, sizeof(sa));
sa.sin_family = AF_INET;
