From ab89d6f2863b6a2925dfa7c98ccddc8cb46fef31 Mon Sep 17 00:00:00 2001 From: "maruel@chromium.org" Date: Thu, 27 May 2010 21:17:54 +0000 Subject: [PATCH] Use getfqdn() instead of gethostname() Otherwise it would return the naked host name most of the time, especially on Windows. Review URL: http://codereview.chromium.org/2239010 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@48432 0039d316-1c4b-4281-b951-d872f2087c98 --- breakpad.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/breakpad.py b/breakpad.py index 356774d89b..6818c9e0e8 100644 --- a/breakpad.py +++ b/breakpad.py @@ -43,6 +43,6 @@ def CheckForException(): if (not 'test' in sys.modules['__main__'].__file__ and - socket.gethostname().endswith('.google.com')): + socket.getfqdn().endswith('.google.com')): # Skip unit tests and we don't want anything from non-googler. atexit.register(CheckForException)