1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-23 10:29:58 +01:00

* assuan-connect.c (assuan_get_pid): New - actually done by Marcus in gpgme.

Set the line length back to the old value.
This commit is contained in:
Werner Koch 2001-11-24 21:20:22 +00:00
parent d3a626ba68
commit 2be29a3cd2
4 changed files with 13 additions and 1 deletions

View File

@ -1,5 +1,7 @@
2001-11-24 Werner Koch <wk@gnupg.org>
* assuan-connect.c (assuan_get_pid): New.
* assuan-buffer.c (_assuan_read_line): Deal with reads of more
than a line.
* assuan-defs.h: Add space in the context for this.

View File

@ -127,3 +127,9 @@ assuan_pipe_disconnect (ASSUAN_CONTEXT ctx)
waitpid (ctx->pid, NULL, 0); /* FIXME Check return value. */
assuan_deinit_pipe_server (ctx);
}
pid_t
assuan_get_pid (ASSUAN_CONTEXT ctx)
{
return ctx ? ctx->pid : -1;
}

View File

@ -24,7 +24,7 @@
#include <sys/types.h>
#include "assuan.h"
#define LINELENGTH 102 /* 1000 + [CR,]LF */
#define LINELENGTH 1002 /* 1000 + [CR,]LF */
struct cmdtbl_s {
const char *name;

View File

@ -21,6 +21,9 @@
#ifndef ASSUAN_H
#define ASSUAN_H
#include <stdio.h>
#include <sys/types.h>
#ifdef __cplusplus
extern "C" {
#if 0
@ -101,6 +104,7 @@ void assuan_deinit_pipe_server (ASSUAN_CONTEXT ctx);
AssuanError assuan_pipe_connect (ASSUAN_CONTEXT *ctx, const char *name,
char *const argv[]);
void assuan_pipe_disconnect (ASSUAN_CONTEXT ctx);
pid_t assuan_get_pid (ASSUAN_CONTEXT ctx);
/*-- assuan-util.c --*/
void assuan_set_malloc_hooks ( void *(*new_alloc_func)(size_t n),