summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authortbreisacher@chromium.org <tbreisacher@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-30 22:19:32 +0000
committertbreisacher@chromium.org <tbreisacher@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-30 22:19:32 +0000
commit2db7a1e553778e297baa318e65b8279b2ac90ff9 (patch)
treefad0a819ec52ba7a17337d0f67866dbfb211a7f8 /base
parentec402170d282877a8597a8bd5220896e4c20e868 (diff)
downloadchromium_src-2db7a1e553778e297baa318e65b8279b2ac90ff9.zip
chromium_src-2db7a1e553778e297baa318e65b8279b2ac90ff9.tar.gz
chromium_src-2db7a1e553778e297baa318e65b8279b2ac90ff9.tar.bz2
Initialize sigaction.sa_restorer
CID=102008 BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/9863052 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129969 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r--base/process_util_posix.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/process_util_posix.cc b/base/process_util_posix.cc
index 493c7a2..3b7c1c3 100644
--- a/base/process_util_posix.cc
+++ b/base/process_util_posix.cc
@@ -802,8 +802,8 @@ bool EnableInProcessStackDumping() {
// to be ignored. Therefore, when testing that same code, it should run
// with SIGPIPE ignored as well.
struct sigaction action;
+ memset(&action, 0, sizeof(action));
action.sa_handler = SIG_IGN;
- action.sa_flags = 0;
sigemptyset(&action.sa_mask);
bool success = (sigaction(SIGPIPE, &action, NULL) == 0);