diff options
Diffstat (limited to 'runtime/runtime.cc')
-rw-r--r-- | runtime/runtime.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/runtime.cc b/runtime/runtime.cc index 717381c2b9..8aa7ea18d1 100644 --- a/runtime/runtime.cc +++ b/runtime/runtime.cc @@ -421,6 +421,9 @@ bool Runtime::Start() { int fd = open(profile_output_filename_.c_str(), O_RDWR|O_CREAT|O_EXCL, 0660); if (fd >= 0) { close(fd); + } else if (errno != EEXIST) { + LOG(INFO) << "Failed to access the profile file. Profiler disabled."; + return true; } StartProfiler(profile_output_filename_.c_str()); } |