[Pkg-gnupg-commit] [libassuan] 13/437: * assuan-connect.c (assuan_get_pid): New - actually done by Marcus in gpgme. Set the line length back to the old value.

Eric Dorland eric at moszumanska.debian.org
Fri May 22 05:33:16 UTC 2015


This is an automated email from the git hooks/post-receive script.

eric pushed a commit to branch master
in repository libassuan.

commit e4eb73109e33a3932380825e022d305272dfbc18
Author: Werner Koch <wk at gnupg.org>
Date:   Sat Nov 24 21:20:22 2001 +0000

    * assuan-connect.c (assuan_get_pid): New - actually done by Marcus in gpgme.
    Set the line length back to the old value.
---
 src/ChangeLog        | 2 ++
 src/assuan-connect.c | 6 ++++++
 src/assuan-defs.h    | 2 +-
 src/assuan.h         | 4 ++++
 4 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/src/ChangeLog b/src/ChangeLog
index 6560526..734ce5e 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,7 @@
 2001-11-24  Werner Koch  <wk at 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.
diff --git a/src/assuan-connect.c b/src/assuan-connect.c
index 778b3a7..37d4262 100644
--- a/src/assuan-connect.c
+++ b/src/assuan-connect.c
@@ -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;
+}
diff --git a/src/assuan-defs.h b/src/assuan-defs.h
index 3772e29..05e548c 100644
--- a/src/assuan-defs.h
+++ b/src/assuan-defs.h
@@ -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;
diff --git a/src/assuan.h b/src/assuan.h
index 7500da1..a5ae8ae 100644
--- a/src/assuan.h
+++ b/src/assuan.h
@@ -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),

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/libassuan.git



More information about the Pkg-gnupg-commit mailing list