Browse Source

Don't create junk file when posting crash report.

Fixes atom/atom#3166.
Cheng Zhao 10 years ago
parent
commit
28b9df24a6
1 changed files with 2 additions and 0 deletions
  1. 2 0
      atom/common/crash_reporter/linux/crash_dump_handler.cc

+ 2 - 0
atom/common/crash_reporter/linux/crash_dump_handler.cc

@@ -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 "