update: add signal handler to serve funtion
This commit is contained in:
@ -178,7 +178,7 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
info(pool_count == 1 ? _("Serving %lu pool on %s") : _("Serving %lu pools on %s"), pool_count, addr);
|
||||
|
||||
if (!lm_ctx_serve(&ctx, addr, config_get_integer("threads"), serve_callback, NULL)) {
|
||||
if (!lm_ctx_serve(&ctx, addr, config_get_integer("threads"), NULL, serve_callback, NULL)) {
|
||||
error(_("Failed to start the server: %s"), lm_strerror());
|
||||
goto end_ctx;
|
||||
}
|
||||
|
Reference in New Issue
Block a user