Clean shutdown behavior, signal handling

This commit is contained in:
flamingcow
2019-05-10 00:40:38 -07:00
parent b5b0cbd599
commit 88b1131104
7 changed files with 90 additions and 14 deletions

View File

@@ -15,5 +15,6 @@ int main(int argc, char *argv[]) {
request->WriteBody("Hello world");
request->End();
}, FLAGS_threads);
server.RegisterSignalHandlers();
server.Serve();
}