From a4f00adf1973a9f164161d1e7091ad6361fa3734 Mon Sep 17 00:00:00 2001 From: "rsleevi@chromium.org" Date: Tue, 21 Sep 2010 02:04:22 +0000 Subject: When crashing on Linux, properly close all file descriptors after forking, so that wget does not inherit them. BUG=none TEST=none Review URL: http://codereview.chromium.org/3402015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60003 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/app/breakpad_linux.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/app/breakpad_linux.cc b/chrome/app/breakpad_linux.cc index ddc67d5..5cb0d71 100644 --- a/chrome/app/breakpad_linux.cc +++ b/chrome/app/breakpad_linux.cc @@ -520,7 +520,7 @@ pid_t HandleCrashDump(const BreakpadInfo& info) { while (reader.GetNextEntry(&name)) { int i; if (my_strtoui(&i, name) && i > 2 && i != fd) - IGNORE_RET(sys_close(fd)); + IGNORE_RET(sys_close(i)); reader.PopEntry(); } -- cgit v1.1