src/hotspot/share/utilities/vmError.cpp
changeset 54845 63ba0b902181
parent 54786 ebf733a324d4
child 54881 80991d58b947
--- a/src/hotspot/share/utilities/vmError.cpp	Tue May 14 15:36:26 2019 +0200
+++ b/src/hotspot/share/utilities/vmError.cpp	Sun Apr 07 09:13:17 2019 +0200
@@ -1198,8 +1198,7 @@
 static int expand_and_open(const char* pattern, char* buf, size_t buflen, size_t pos) {
   int fd = -1;
   if (Arguments::copy_expand_pid(pattern, strlen(pattern), &buf[pos], buflen - pos)) {
-    // the O_EXCL flag will cause the open to fail if the file exists
-    fd = open(buf, O_RDWR | O_CREAT | O_EXCL, 0666);
+    fd = open(buf, O_RDWR | O_CREAT, 0666);
   }
   return fd;
 }