Skip to content

Commit

Permalink
daemon: sid: request logger service link creation for running a new w…
Browse files Browse the repository at this point in the history
…orker

Reestablish the logger service link in the worker process if creating a
new worker resource (calling worker_control_run_worker).
  • Loading branch information
prajnoha committed Dec 11, 2023
1 parent d8f7bbb commit 81c084e
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/daemon/sid.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,17 @@ int main(int argc, char *argv[])
goto out;
}
sid_res = NULL;
r = worker_control_run_worker(worker_control_res);
r = worker_control_run_worker(worker_control_res,
(sid_resource_service_link_def_t[]) {
{
.name = "worker-logger",
.type = SERVICE_TYPE_LOGGER,
.notification = SERVICE_NOTIFICATION_MESSAGE,
.flags = SERVICE_FLAG_CLONEABLE,
.data = log,
},
NULL_SERVICE_LINK,
});
}

out:
Expand Down

0 comments on commit 81c084e

Please sign in to comment.