Skip to content

services/polkit: refactor authentication request queueing#800

Open
MrAdityaAlok wants to merge 1 commit into
quickshell-mirror:masterfrom
MrAdityaAlok:fix-polkitagent
Open

services/polkit: refactor authentication request queueing#800
MrAdityaAlok wants to merge 1 commit into
quickshell-mirror:masterfrom
MrAdityaAlok:fix-polkitagent

Conversation

@MrAdityaAlok
Copy link
Copy Markdown
Contributor

@MrAdityaAlok MrAdityaAlok commented May 12, 2026

  • Relying on queuedRequests.size() == 1 is buggy as it allows newer
    requests to takeover the currently active one.
  • Now we rely on bActiveFlow.value() being nullptr.
  • Process requests linearly until we find a valid request to prevent
    deadlock.

@MrAdityaAlok MrAdityaAlok marked this pull request as draft May 12, 2026 11:11
- Relying on `queuedRequests.size() == 1` is buggy as it allows newer
  requests to takeover the currently active one.
- Now we rely on `bActiveFlow.value()` being `nullptr`.
- Process requests linearly until we find a valid request to prevent
  deadlock.

Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
@MrAdityaAlok MrAdityaAlok changed the title services/polkit: dequeue authentication request after it has finished services/polkit: refactor authentication request queueing May 12, 2026
@MrAdityaAlok MrAdityaAlok marked this pull request as ready for review May 12, 2026 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant