update: add signal handler to serve funtion

This commit is contained in:
ngn
2024-08-08 15:43:17 +03:00
parent 9bfd299f68
commit ab91344b5f
2 changed files with 2 additions and 2 deletions

View File

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