nghttpd: Handle return value from server.run()

This commit is contained in:
Tatsuhiro Tsujikawa 2015-02-12 23:18:25 +09:00
parent 0d2bbead9d
commit 6f4f252907
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}