chiark / gitweb /
libgpg-error: workaround no stdout atexit with constructor prior to N (#1017)
[termux-packages] / packages / gnupg2 / tools-gpgconf.c.patch
1 diff -u -r ../gnupg-2.1.11/tools/gpgconf.c ./tools/gpgconf.c
2 --- ../gnupg-2.1.11/tools/gpgconf.c     2016-01-18 02:14:56.000000000 -0500
3 +++ ./tools/gpgconf.c   2016-04-14 20:06:56.058590579 -0400
4 @@ -393,5 +395,8 @@
5      if (es_fclose (outfp))
6        gc_error (1, errno, "error closing '%s'", opt.outfile);
7  
8 +  /* XXX: Workaround for libgpg-error atexit()-callback not working. */
9 +  es_fflush(NULL);
10 +
11    return 0;
12  }