Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
SUSE:SLE-12-SP2:Update
java-1_7_0-openjdk-bootstrap.3579
abrt_friendly_hs_log_jdk7.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File abrt_friendly_hs_log_jdk7.patch of Package java-1_7_0-openjdk-bootstrap.3579
--- openjdk/hotspot/src/share/vm/utilities/vmError.cpp 2012-02-02 16:17:24.476664897 +0100 +++ openjdk/hotspot/src/share/vm/utilities/vmError.cpp 2012-02-02 16:17:24.476664897 +0100 @@ -929,6 +929,7 @@ } } + /* if (fd == -1) { const char *cwd = os::get_current_directory(buffer, sizeof(buffer)); size_t len = strlen(cwd); @@ -938,6 +939,24 @@ os::file_separator(), os::current_process_id()); fd = open(buffer, O_RDWR | O_CREAT | O_TRUNC, 0666); } + */ + + if (fd == -1) { + const char * tmpdir = os::get_temp_directory(); + // try temp directory if it exists. + if (tmpdir != NULL && tmpdir[0] != '\0') { + jio_snprintf(buffer, sizeof(buffer), "%s%sjvm-%u", + tmpdir, os::file_separator(), os::current_process_id()); + // if mkdir() failed, hs_err will be created in temporary directory + if (!mkdir(buffer, 0700)) { // only read+execute flags are needed + // but we need to write into the directory too + jio_snprintf(buffer, sizeof(buffer), "%s%sjvm-%u%shs_error.log", + tmpdir, os::file_separator(), os::current_process_id(), + os::file_separator()); + fd = open(buffer, O_WRONLY | O_CREAT | O_TRUNC, 0444); // read-only file + } + } + } if (fd == -1) { const char * tmpdir = os::get_temp_directory();
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor