mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
* assuan-buffer.c (_assuan_read_line): Add output logging.
(assuan_write_line): Ditto. (_assuan_cookie_write_data): Ditto. (_assuan_cookie_write_flush): Ditto. * assuan-util.c (_assuan_log_print_buffer): New. (assuan_set_log_stream): New. (assuan_begin_confidential): New. (assuan_end_confidential): New. * assuan-defs.h: Add a few handler variables. * assuan-pipe-server.c (assuan_deinit_pipe_server): Removed. (deinit_pipe_server): New. (assuan_deinit_server): New. Changed all callers to use this. * assuan-listen.c (assuan_accept): Use the accept handler. * assuan-handler.c (process_request): Use the close Handler. * assuan-socket-server.c: New.
This commit is contained in:
parent
6af684c118
commit
f58da1883a
11 changed files with 311 additions and 19 deletions
|
@ -133,7 +133,7 @@ assuan_pipe_connect (ASSUAN_CONTEXT *ctx, const char *name, char *const argv[],
|
|||
close (rp[1]);
|
||||
close (wp[0]);
|
||||
close (wp[1]);
|
||||
assuan_deinit_pipe_server (*ctx); /* FIXME: Common code should be factored out. */
|
||||
assuan_deinit_server (*ctx); /* FIXME: Common code should be factored out. */
|
||||
return ASSUAN_General_Error;
|
||||
}
|
||||
|
||||
|
@ -221,7 +221,7 @@ assuan_pipe_connect (ASSUAN_CONTEXT *ctx, const char *name, char *const argv[],
|
|||
{
|
||||
if ((*ctx)->pid != -1)
|
||||
waitpid ((*ctx)->pid, NULL, 0); /* FIXME Check return value. */
|
||||
assuan_deinit_pipe_server (*ctx); /* FIXME: Common code should be factored out. */
|
||||
assuan_deinit_server (*ctx); /* FIXME: Common code should be factored out. */
|
||||
}
|
||||
|
||||
return err;
|
||||
|
@ -234,7 +234,7 @@ assuan_pipe_disconnect (ASSUAN_CONTEXT ctx)
|
|||
close (ctx->inbound.fd);
|
||||
close (ctx->outbound.fd);
|
||||
waitpid (ctx->pid, NULL, 0); /* FIXME Check return value. */
|
||||
assuan_deinit_pipe_server (ctx);
|
||||
assuan_deinit_server (ctx);
|
||||
}
|
||||
|
||||
pid_t
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue