diff options
| author | NIIBE Yutaka <[email protected]> | 2018-11-28 05:59:44 +0000 |
|---|---|---|
| committer | NIIBE Yutaka <[email protected]> | 2018-11-28 05:59:44 +0000 |
| commit | 47106ac435e891ced67f0ad9bb6b2ee12098c880 (patch) | |
| tree | ba103456127440c583b48b13efbf24997311c8ab /common/mischelp.c | |
| parent | agent: Better serialization for scdaemon access. (diff) | |
| download | gnupg-47106ac435e891ced67f0ad9bb6b2ee12098c880.tar.gz gnupg-47106ac435e891ced67f0ad9bb6b2ee12098c880.zip | |
scd: Serialize opening device by select_application.
* scd/app.c (app_new_register): Don't lock APP_LIST_LOCK here.
(select_application): Lock with APP_LIST_LOCK earlier.
--
What we want to do here is to serialize the call of
select_application. In the old code, it was possible
that a call of select_application was blocked internally,
and then another call of select_application entered.
We can have a dedicated lock for call of select_application,
but it is easier to re-use APP_LIST_LOCK.
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'common/mischelp.c')
0 files changed, 0 insertions, 0 deletions
