diff options
author | dmichael@google.com <dmichael@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-16 18:39:43 +0000 |
---|---|---|
committer | dmichael@google.com <dmichael@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-16 18:39:43 +0000 |
commit | c4db9a19988a098e28c6d5718f3d8f5bfb3f2fd6 (patch) | |
tree | 015ca41c4d18b3c1b9e68094746279c9f7316139 /chrome/test/webdriver | |
parent | 8355c43370924931547c5923065c33ae15009202 (diff) | |
download | chromium_src-c4db9a19988a098e28c6d5718f3d8f5bfb3f2fd6.zip chromium_src-c4db9a19988a098e28c6d5718f3d8f5bfb3f2fd6.tar.gz chromium_src-c4db9a19988a098e28c6d5718f3d8f5bfb3f2fd6.tar.bz2 |
Revert 168239 - Extract SIGPIPE ignoring code to a common place.
Failed compile on Linux Clang:
http://build.chromium.org/p/chromium.linux/builders/Linux%20Clang%20%28dbg%29/builds/35971/steps/compile/logs/stdio
../../chrome/test/webdriver/webdriver_server.cc:230:8:error: use of undeclared identifier 'IgnoreSigPipe'; did you mean 'base::IgnoreSigPipe'?
if (!IgnoreSigPipe()) {
^~~~~~~~~~~~~
base::IgnoreSigPipe
../../base/process_util.h:153:18: note: 'base::IgnoreSigPipe' declared here
BUG=none
Review URL: https://codereview.chromium.org/11280010
TBR=phajdan.jr@chromium.org
Review URL: https://codereview.chromium.org/11308073
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168248 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/webdriver')
-rw-r--r-- | chrome/test/webdriver/webdriver_server.cc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/chrome/test/webdriver/webdriver_server.cc b/chrome/test/webdriver/webdriver_server.cc index 5781bac..ccb8c70 100644 --- a/chrome/test/webdriver/webdriver_server.cc +++ b/chrome/test/webdriver/webdriver_server.cc @@ -19,7 +19,6 @@ #include "base/file_util.h" #include "base/memory/scoped_ptr.h" #include "base/path_service.h" -#include "base/process_util.h" #include "base/stringprintf.h" #include "base/string_number_conversions.h" #include "base/string_split.h" @@ -227,11 +226,8 @@ int RunChromeDriver() { CommandLine* cmd_line = CommandLine::ForCurrentProcess(); #if defined(OS_POSIX) - if (!IgnoreSigPipe()) { - LOG(ERROR) << "Failed to ignore SIGPIPE"; - return EXIT_FAILURE; - } -#endif // defined(OS_POSIX) + signal(SIGPIPE, SIG_IGN); +#endif srand((unsigned int)time(NULL)); // Register Chrome's path provider so that the AutomationProxy will find our |