You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.
I was investigating issue #4064, where cleos wallet create fails if "eosio-wallet" directory doesn't exist and keosd is already running.
This issue still persists in the master branch but has disappeared in the develop branch.
However, I noticce the following thing in develop branch:
I call cleos wallet create, a keosd process is spawned
I delete the "~/eosio-wallet" folder
I call cleos wallet create again, another keosd process is spawned. So I have two keosd processes now running, which I think should be prevented since I already have a keosd process running?
Although it's not harmful or critical, I think it will be tidier if it can be cleaned up.
The text was updated successfully, but these errors were encountered:
Correct. That's why this issue doesn't happen in the master branch as it is still using TCP port. However, the develop branch seems to have moved the keosd communication to unix socket instead and the unix socket file is located inside "eosio-wallet" folder.
Since all file locks in Linux are advisory locks, a perfect solution that avoids all possible race conditions is not possible. That said, keosd now monitors its lock file and terminates if it's manually removed, preventing most instances of abandoned keosd instances happening as a result of user experimentation.
I was investigating issue #4064, where
cleos wallet create
fails if "eosio-wallet" directory doesn't exist and keosd is already running.This issue still persists in the master branch but has disappeared in the develop branch.
However, I noticce the following thing in develop branch:
cleos wallet create
, a keosd process is spawnedcleos wallet create
again, another keosd process is spawned. So I have two keosd processes now running, which I think should be prevented since I already have a keosd process running?Although it's not harmful or critical, I think it will be tidier if it can be cleaned up.
The text was updated successfully, but these errors were encountered: