diff options
| author | Werner Koch <[email protected]> | 2019-06-14 08:12:56 +0000 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2019-06-14 08:16:06 +0000 |
| commit | 153f1128f81a934868a4175e73342b1adb9a969e (patch) | |
| tree | 2e5ddb203f0f411fff7743176e0e30a63f881fc0 /src/fdtable.c | |
| parent | core: Refactor the wait code utilizing the new fdtable. (diff) | |
| download | gpgme-153f1128f81a934868a4175e73342b1adb9a969e.tar.gz gpgme-153f1128f81a934868a4175e73342b1adb9a969e.zip | |
core: Use a better name for the internal synchronous wait.
* src/wait.c (_gpgme_wait_on_condition): Rename to ...
(_gpgme_sync_wait): this. Small code refactoring.
(_gpgme_wait_one, _gpgme_wait_one_ext): Remove and change all callers
to use _gpgme_sync_wait.
* src/fdtable.c (_gpgme_fdtable_run_io_cbs): Move TRACE up.
--
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'src/fdtable.c')
| -rw-r--r-- | src/fdtable.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fdtable.c b/src/fdtable.c index de240fc3..13d6ef94 100644 --- a/src/fdtable.c +++ b/src/fdtable.c @@ -481,11 +481,11 @@ _gpgme_fdtable_run_io_cbs (uint64_t owner, gpg_error_t *r_op_err) unsigned int cb_count; gpgme_ctx_t actx; + TRACE_BEG (DEBUG_SYSIO, __func__, NULL, "ctx=%lu", owner); + if (r_op_err) *r_op_err = 0; - TRACE_BEG (DEBUG_SYSIO, __func__, NULL, "ctx=%lu", owner); - for (;;) { fd = -1; |
