Home GnuPG
Diffusion GnuPG 1192449207f4

w32: Make pipes really pollable.
1192449207f4Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

w32: Make pipes really pollable.

* common/exectool.c (gnupg_exec_tool_stream) [W32]: Use _get_osfhandle
to print the fd for the command line.
* common/exechelp-w32.c (create_pipe_and_estream): Use es_sysopen so
that the streams are actually pollable.

This addresses two bugs:

  • Using the "-&@INEXTRA@" kludges requires that we pass the value of the handle on the command line and not the libc fd.
  • gpgrt_poll requires the use of the ReadFile/WriteFile backend which is currently only used when the stream has been created with gpgrt_sysopen.
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Feb 28 2017, 9:34 AM
Parents
rGf5782e11a560: dirmngr: Avoid warnings during non-ntbtls build.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rG1192449207f4: w32: Make pipes really pollable. (authored by Werner Koch <wk@gnupg.org>).Feb 28 2017, 9:39 AM