diff options
author | Werner Koch <[email protected]> | 2024-06-07 14:09:55 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2024-06-07 14:09:55 +0000 |
commit | ee9167cc3501021761f91f3f00cab57b5719ecc0 (patch) | |
tree | 38ef0e73a6e3563f0f41cbb283a520e3fc6cbd54 | |
parent | Modify documentation for new release. (diff) | |
download | libassuan-ee9167cc3501021761f91f3f00cab57b5719ecc0.tar.gz libassuan-ee9167cc3501021761f91f3f00cab57b5719ecc0.zip |
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.
-rw-r--r-- | src/assuan-listen.c | 5 |
1 files changed, 0 insertions, 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; } - |