]> khamidou — GitHub mirrors - electron.git/commitdiff
Don't create junk file when posting crash report.
authorCheng Zhao <zcbenz@gmail.com>
Mon, 4 Aug 2014 14:58:34 +0000 (22:58 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Mon, 4 Aug 2014 14:58:34 +0000 (22:58 +0800)
Fixes atom/atom#3166.

atom/common/crash_reporter/linux/crash_dump_handler.cc

index 9d20ba4c7a2bd206e2b7bf460d5afc1c69b0e7ea..8cbb7f6520859e733239766f5f7d231873ad2560 100644 (file)
@@ -350,6 +350,8 @@ void ExecUploadProcessOrTerminate(const BreakpadInfo& info,
     "--timeout=60",  // Set a timeout so we don't hang forever.
     "--tries=1",     // Don't retry if the upload fails.
     "--quiet",       // Be silent.
+    "-O",            // output reply to /dev/null.
+    "/dev/null",
     NULL,
   };
   static const char msg[] = "Cannot upload crash dump: cannot exec "