From ee9167cc3501021761f91f3f00cab57b5719ecc0 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 7 Jun 2024 16:09:55 +0200 Subject: Always append the process identification to hello line. * src/assuan-listen.c (assuan_accept): Always append "process %i". -- Is was surprising that we see this on Unix only for servers which do not set their own hello line. --- src/assuan-listen.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/assuan-listen.c b/src/assuan-listen.c index d4834a3..f19a7e4 100644 --- a/src/assuan-listen.c +++ b/src/assuan-listen.c @@ -112,27 +112,23 @@ assuan_accept (assuan_context_t ctx) pend = strchr (p, '\n'); } while (pend); -#if defined(HAVE_W32_SYSTEM) if (apid != ASSUAN_INVALID_PID) { snprintf (tmpbuf, sizeof tmpbuf, "%s, process %i", p, (int)apid); rc = _assuan_write_line (ctx, "OK ", tmpbuf, strlen (tmpbuf)); } else -#endif rc = _assuan_write_line (ctx, "OK ", p, strlen (p)); } else if (p) { -#if defined(HAVE_W32_SYSTEM) if (apid != ASSUAN_INVALID_PID) { snprintf (tmpbuf, sizeof tmpbuf, "%s, process %i", p, (int)apid); rc = assuan_write_line (ctx, tmpbuf); } else -#endif rc = assuan_write_line (ctx, p); } else @@ -192,4 +188,3 @@ assuan_close_output_fd (assuan_context_t ctx) ctx->output_fd = ASSUAN_INVALID_FD; return 0; } - -- cgit v1.2.3