diff options
| author | NIIBE Yutaka <[email protected]> | 2025-10-03 04:51:16 +0200 |
|---|---|---|
| committer | NIIBE Yutaka <[email protected]> | 2025-10-03 04:51:16 +0200 |
| commit | a6306b7f5e188a58b938067139813c8b230b6df2 (patch) | |
| tree | 3467b0cd2e3856d483736e314221bb07a327a1e7 | |
| parent | Merge branch 'master' into gniibe/synch-spawn (diff) | |
| download | gnupg-gniibe/synch-spawn.tar.gz gnupg-gniibe/synch-spawn.zip | |
commpn:w32: Ignore the error reading from the pipe.gniibe/synch-spawn
* common/asshelp.c (start_new_service): Clean up for the older
Windows support.
--
GnuPG-bug-id: 7720
Signed-off-by: NIIBE Yutaka <[email protected]>
| -rw-r--r-- | common/asshelp.c | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/common/asshelp.c b/common/asshelp.c index 659f35dbe..5ba0864a5 100644 --- a/common/asshelp.c +++ b/common/asshelp.c @@ -557,22 +557,18 @@ start_new_service (assuan_context_t *r_ctx, to serve, by reading from the pipe. */ r = read (pipe_in, buf, sizeof buf); close (pipe_in); - /* Older versions of Windows (< Vista), it cannot - * support spawing with pipe I/O for - * GPGRT_PROCESS_DETACHED flag (since inheriting - * specific HANDLEs are not supported). In this - * case, read from child process fails. - */ if (r < 0) { if (verbose) log_info ("read from child process failed: %s\n", strerror (errno)); -/* NOTE: Remove following line when we can assume newer Windows. */ -#define SUPPORT_OLDER_WINDOWS 1 -#if !defined(SUPPORT_OLDER_WINDOWS) - err = gpg_error (GPG_ERR_SERVER_FAILED); -#endif + /* + * Go ahead, ignoring the read error, so that + * we can still support older Windows (< Vista). + * + * In future, we should return error with + * GPG_ERR_SERVER_FAILED here. + */ } } gpgrt_process_release (proc); |
