-
Notifications
You must be signed in to change notification settings - Fork 291
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(agent.c): wait for agent to successfully spawn before exiting.
We open a pipe with the agent when we spawn it, and wait for them to say they're ready before exiting. This *should* fix #650. The underlying issue was that when doing: ``` lpass login [email protected] lpass show bar ``` in a script would cause a race condition where `lpass login` exited before the agent was successfully brought up. `lpass show bar` then tried to reach out to the agent, sees the socket isn't created yet, and says the user isn't logged in. Signed-Off-by: Arvinder Dhanoa <[email protected]>
- Loading branch information
1 parent
4a6e1da
commit 0c7fd48
Showing
1 changed file
with
38 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters