Diffusion GPGME 6f02133bb077

w32: Fix closing file descriptors.

Authored by justus on Jan 23 2017, 3:08 PM.

Description

w32: Fix closing file descriptors.

* src/w32-io.c (writer): Only stop once the buffer is drained.
(destroy_writer): Wait for the writers buffer to be drained.  This
aligns '_gpgme_io_close's behavior with close(2) and fclose(3).
  • GnuPG-bug-id: T2881
  • Signed-off-by: Justus Winter <justus@g10code.com>

Details

Committed
justusJan 23 2017, 3:08 PM
Parents
rMca69df8c8d3f: tests: Add safeguards against nullptr deref
Branches
Unknown
Tags
Unknown
Justus Winter <justus@g10code.com> committed rM6f02133bb077: w32: Fix closing file descriptors. (authored by Justus Winter <justus@g10code.com>).Jan 23 2017, 3:08 PM
justus mentioned this in Unknown Object (Maniphest Task).Mar 27 2017, 5:11 PM
justus mentioned this in Unknown Object (Maniphest Task).Mar 27 2017, 5:34 PM