Commit 6f4f2529 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

nghttpd: Handle return value from server.run()

parent 0d2bbead
......@@ -298,7 +298,9 @@ int main(int argc, char **argv) {
reset_timer();
HttpServer server(&config);
server.run();
if (server.run() != 0) {
exit(EXIT_FAILURE);
}
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment