summaryrefslogtreecommitdiff
path: root/src/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/client.c')
-rw-r--r--src/client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client.c b/src/client.c
index 9235584..410f940 100644
--- a/src/client.c
+++ b/src/client.c
@@ -48,11 +48,11 @@ _assuan_client_finish (assuan_context_t ctx)
_assuan_close (ctx, ctx->outbound.fd);
ctx->outbound.fd = ASSUAN_INVALID_FD;
}
- if (ctx->server_proc != ASSUAN_INVALID_PID)
+ if (ctx->server_proc != -1)
{
if (!ctx->flags.is_socket)
_assuan_waitpid (ctx, ctx->server_proc, ctx->flags.no_waitpid, NULL, 0);
- ctx->server_proc = ASSUAN_INVALID_PID;
+ ctx->server_proc = -1;
}
_assuan_uds_deinit (ctx);