* lib/gc-gnulib.c (randomize): Pass an O_CLOEXEC flag to open().
* modules/crypto/gc (Depends-on): Add 'open'.
+2020-05-28 Bruno Haible <bruno@clisp.org>
+
+ crypto/gc: Make more robust in multithreaded applications.
+ * lib/gc-gnulib.c (randomize): Pass an O_CLOEXEC flag to open().
+ * modules/crypto/gc (Depends-on): Add 'open'.
+
2020-05-28 Bruno Haible <bruno@clisp.org>
copy-file: Make more robust in multithreaded applications.
if (strcmp (device, "no") == 0)
return GC_RANDOM_ERROR;
- fd = open (device, O_RDONLY);
+ fd = open (device, O_RDONLY | O_CLOEXEC);
if (fd < 0)
return GC_RANDOM_ERROR;
Depends-on:
havelib
+open
configure.ac:
gl_GC