aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/assuan-pipe-server.c5
-rw-r--r--src/client.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/src/assuan-pipe-server.c b/src/assuan-pipe-server.c
index 7977b83..5c960a6 100644
--- a/src/assuan-pipe-server.c
+++ b/src/assuan-pipe-server.c
@@ -87,6 +87,11 @@ assuan_init_pipe_server (assuan_context_t ctx, assuan_fd_t filedes[2])
infd = filedes[0];
outfd = filedes[1];
}
+ else
+ {
+ infd = assuan_fd_from_posix_fd (0);
+ outfd = assuan_fd_from_posix_fd (1);
+ }
#else
s = getenv ("_assuan_connection_fd");
if (s && *s && is_valid_socket (s))
diff --git a/src/client.c b/src/client.c
index 1746788..dcb2a1a 100644
--- a/src/client.c
+++ b/src/client.c
@@ -51,7 +51,7 @@ _assuan_client_finish (assuan_context_t ctx)
if (ctx->pid != ASSUAN_INVALID_PID && ctx->pid)
{
if (!ctx->flags.is_socket)
- _assuan_waitpid (ctx, ctx->pid, ctx->flags.no_waitpid, NULL, 0);
+ _assuan_waitpid (ctx, ctx->pid, ctx->flags.no_waitpid, NULL, 0);
ctx->pid = ASSUAN_INVALID_PID;
}