Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Unified Diff: crash_collector.cc

Issue 6297004: crash-reporter: Add diagnostics to help diagnose failures in the wild (Closed) Base URL: http://git.chromium.org/git/crash-reporter.git@master
Patch Set: log bad params instead of check failing Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « crash_collector.h ('k') | crash_collector_test.cc » ('j') | user_collector.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crash_collector.cc
diff --git a/crash_collector.cc b/crash_collector.cc
index 89fe41de46cf2c81ab6b65472fa137f42317f654..926ee519f07a5bd0dcc7908b2cc845d7d6cf049d 100644
--- a/crash_collector.cc
+++ b/crash_collector.cc
@@ -110,7 +110,8 @@ int CrashCollector::ForkExecAndPipe(std::vector<const char *> &arguments,
}
if (pid == 0) {
- int output_handle = HANDLE_EINTR(creat(output_file, 0600));
+ int output_handle = HANDLE_EINTR(
+ open(output_file,O_CREAT | O_WRONLY | O_TRUNC | O_EXCL, 0666));
petkov 2011/01/24 18:36:04 space after ,
kmixter1 2011/01/25 21:28:07 Done.
if (output_handle < 0) {
logger_->LogError("Could not create %s: %d", output_file, errno);
// Avoid exit() to avoid atexit handlers from parent.
« no previous file with comments | « crash_collector.h ('k') | crash_collector_test.cc » ('j') | user_collector.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698