* lib/javacomp.c (get_classfile_version): Pass an O_CLOEXEC flag to
open().
* modules/javacomp (Depends-on): Add 'open'.
+2020-05-28 Bruno Haible <bruno@clisp.org>
+
+ javacomp: Make more robust in multithreaded applications.
+ * lib/javacomp.c (get_classfile_version): Pass an O_CLOEXEC flag to
+ open().
+ * modules/javacomp (Depends-on): Add 'open'.
+
2020-05-28 Bruno Haible <bruno@clisp.org>
getprogname: Make more robust in multithreaded applications.
int fd;
/* Open the class file. */
- fd = open (compiled_file_name, O_RDONLY | O_BINARY, 0);
+ fd = open (compiled_file_name, O_RDONLY | O_BINARY | O_CLOEXEC, 0);
if (fd >= 0)
{
/* Read its first 8 bytes. */
xsetenv
sh-quote
binary-io
+open
safe-read
xalloc
xmalloca