summaryrefslogtreecommitdiffstats
path: root/chrome/app/breakpad_linux.cc
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-02 21:28:50 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-02 21:28:50 +0000
commit8137f3170df7543e5213c051443f3157d168d859 (patch)
tree30bfc178eff4729854efba9f8e3093f30946f9c6 /chrome/app/breakpad_linux.cc
parentd03c658c4baabe124e5eb3e540f13da296d64d8a (diff)
downloadchromium_src-8137f3170df7543e5213c051443f3157d168d859.zip
chromium_src-8137f3170df7543e5213c051443f3157d168d859.tar.gz
chromium_src-8137f3170df7543e5213c051443f3157d168d859.tar.bz2
Linux: Handle renderer and plugin crashes on a separate thread.
Also set retries / timeouts for wget to attempt to limit the duration of each crash handler. Move some code out of headers while we're at it. BUG=54071 TEST=change /usr/bin/wget to sleep forever, visit about:crash in a Breakpad-enabled build, make sure other renderers continue to work. Review URL: http://codereview.chromium.org/3308007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58403 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/app/breakpad_linux.cc')
-rw-r--r--chrome/app/breakpad_linux.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/app/breakpad_linux.cc b/chrome/app/breakpad_linux.cc
index 42d7b93..3619a71 100644
--- a/chrome/app/breakpad_linux.cc
+++ b/chrome/app/breakpad_linux.cc
@@ -558,6 +558,8 @@ pid_t HandleCrashDump(const BreakpadInfo& info) {
header,
post_file,
kUploadURL,
+ "--timeout=10", // Set a timeout so we don't hang forever.
+ "--tries=1", // Don't retry if the upload fails.
"-O", // output reply to fd 3
"/dev/fd/3",
NULL,