nghttpd: Handle return value from server.run()
This commit is contained in:
parent
0d2bbead9d
commit
6f4f252907
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue