Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MONITOR: fix socket_activated flag initialization #6575

Conversation

alexey-tikhonov
Copy link
Member

When socket activated service connects for a first time, it is added to mt_ctx->svc_list by socket_activated_service_not_found() with a proper socket_activated = true.
But when it reconnects again, get_service_in_the_list() finds it in mt_ctx->svc_list and overwrites socket_activated = false unconditionally. This patch moves moves socket_activated = false to start_service().

Resolves: #6324

Copy link
Contributor

@ikerexxe ikerexxe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two minor changes in your commit message:
s/for a first/for the first
s/patch moves moves/patch moves

@alexey-tikhonov
Copy link
Member Author

s/for a first/for the first

@spoore1, could you please help - what is better in this context?

@spoore1
Copy link
Contributor

spoore1 commented Feb 16, 2023

I believe 'for the first time' is correct in this context.

When socket activated service connects for the first time, it is added to
`mt_ctx->svc_list` by `socket_activated_service_not_found()` with a proper
`socket_activated = true`.
But when it reconnects again, `get_service_in_the_list()` finds it in
`mt_ctx->svc_list` and overwrites `socket_activated = false` unconditionally.
This patch moves `socket_activated = false` to `start_service()`.

Resolves: SSSD#6324
Copy link
Contributor

@ikerexxe ikerexxe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for the patch!

@alexey-tikhonov
Copy link
Member Author

Pushed PR: #6575

  • master
    • d4f7ed6 - MONITOR: fix socket_activated flag initialization
  • sssd-2-8
    • ae0accc - MONITOR: fix socket_activated flag initialization

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

coredump occurs when I restart sssd-ifp.service with sssd.service is inactive
4 participants