diff options
author | tbreisacher@chromium.org <tbreisacher@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-30 22:19:32 +0000 |
---|---|---|
committer | tbreisacher@chromium.org <tbreisacher@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-30 22:19:32 +0000 |
commit | 2db7a1e553778e297baa318e65b8279b2ac90ff9 (patch) | |
tree | fad0a819ec52ba7a17337d0f67866dbfb211a7f8 /base | |
parent | ec402170d282877a8597a8bd5220896e4c20e868 (diff) | |
download | chromium_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.cc | 2 |
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); |