Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

mir/agent: fix indefinite wait if fail to start prompt session #14

Merged

Conversation

peat-psuwit
Copy link
Contributor

@peat-psuwit peat-psuwit commented Feb 14, 2021

For some reason, Mir still provide an FD for a prompt session even if it
fails to start. When this FD is passed to the prompt provider, it will
just hang, causing the whole trust store user chain to just wait. To fix
this, make sure the agent checks for the error before continue.

Related: ubports/ubuntu-touch#1668

@peat-psuwit peat-psuwit force-pushed the xenial_-_handle-prompt-fails-to-start branch from 79721f8 to f6a7484 Compare February 14, 2021 18:29
@peat-psuwit peat-psuwit marked this pull request as draft February 14, 2021 18:43
For some reason, Mir still provide an FD for a prompt session even if it
fails to start. When this FD is passed to the prompt provider, it will
just hang, causing the whole trust store user chain to just wait. To fix
this, make sure the agent checks for the error before continue.

Related: ubports/ubuntu-touch#1668
@peat-psuwit peat-psuwit force-pushed the xenial_-_handle-prompt-fails-to-start branch from f6a7484 to 25d3d82 Compare February 14, 2021 19:18
@peat-psuwit peat-psuwit marked this pull request as ready for review February 14, 2021 19:18
Copy link
Member

@UniversalSuperBox UniversalSuperBox left a comment

Choose a reason for hiding this comment

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

Functional tests look good. Merge when ready @peat-psuwit.

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

Successfully merging this pull request may close these issues.

None yet

2 participants