core: Make the refactored user event loop work.
* src/wait.c (user_io_cb_handler): Set FD signaled. -- With this patch the regression test suite now passes. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
0378250846
commit
b2749d77da
@ -51,6 +51,7 @@ user_io_cb_handler (void *data, int fd)
|
|||||||
uint64_t serial;
|
uint64_t serial;
|
||||||
gpgme_ctx_t ctx;
|
gpgme_ctx_t ctx;
|
||||||
gpg_error_t op_err;
|
gpg_error_t op_err;
|
||||||
|
struct io_select_s iosel;
|
||||||
|
|
||||||
(void)fd;
|
(void)fd;
|
||||||
|
|
||||||
@ -58,6 +59,12 @@ user_io_cb_handler (void *data, int fd)
|
|||||||
serial = tag->serial;
|
serial = tag->serial;
|
||||||
assert (serial);
|
assert (serial);
|
||||||
|
|
||||||
|
iosel.fd = fd;
|
||||||
|
iosel.for_read = 0; /* we don't care. */
|
||||||
|
iosel.for_write = 0; /* we don't care. */
|
||||||
|
iosel.signaled = 1; /* we are only called when I/O is pending. */
|
||||||
|
_gpgme_fdtable_set_signaled (&iosel, 1);
|
||||||
|
|
||||||
err = _gpgme_fdtable_run_io_cbs (serial, &op_err, NULL);
|
err = _gpgme_fdtable_run_io_cbs (serial, &op_err, NULL);
|
||||||
if (err || op_err)
|
if (err || op_err)
|
||||||
;
|
;
|
||||||
|
Loading…
Reference in New Issue
Block a user