summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrsleevi@chromium.org <rsleevi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-21 02:04:22 +0000
committerrsleevi@chromium.org <rsleevi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-21 02:04:22 +0000
commita4f00adf1973a9f164161d1e7091ad6361fa3734 (patch)
treeb705699469c93c544c5980e89f49c9322128c22e
parentdbacaa1b94a587b2e371d5a19436107bac005e6d (diff)
downloadchromium_src-a4f00adf1973a9f164161d1e7091ad6361fa3734.zip
chromium_src-a4f00adf1973a9f164161d1e7091ad6361fa3734.tar.gz
chromium_src-a4f00adf1973a9f164161d1e7091ad6361fa3734.tar.bz2
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
-rw-r--r--chrome/app/breakpad_linux.cc2
1 files changed, 1 insertions, 1 deletions
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();
}