From 28b9df24a636dc88f735086eb21abdd8a08f42f2 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Mon, 4 Aug 2014 22:58:34 +0800 Subject: [PATCH] Don't create junk file when posting crash report. Fixes atom/atom#3166. --- atom/common/crash_reporter/linux/crash_dump_handler.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/atom/common/crash_reporter/linux/crash_dump_handler.cc b/atom/common/crash_reporter/linux/crash_dump_handler.cc index 9d20ba4c7a2b..8cbb7f652085 100644 --- a/atom/common/crash_reporter/linux/crash_dump_handler.cc +++ b/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 "