diff options
| author | Elliott Hughes <enh@google.com> | 2018-11-29 01:48:29 +0000 |
|---|---|---|
| committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-11-29 01:48:29 +0000 |
| commit | 894da4e0fd3e1f6f986dbab86977d23ff690d982 (patch) | |
| tree | 1d8430185d4ca6c8cc03e0e88a48fd0121937d87 /debuggerd | |
| parent | e2e519ea2f3b72d06415fd6a564a9304a5c24d67 (diff) | |
| parent | 8ac2f27cc2fa5fbfc1bbd1cede906d254a77f862 (diff) | |
| download | system_core-894da4e0fd3e1f6f986dbab86977d23ff690d982.tar.gz system_core-894da4e0fd3e1f6f986dbab86977d23ff690d982.tar.bz2 system_core-894da4e0fd3e1f6f986dbab86977d23ff690d982.zip | |
Merge "tombstoned: fixed tombstones failed issue"
Diffstat (limited to 'debuggerd')
| -rw-r--r-- | debuggerd/crash_dump.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/debuggerd/crash_dump.cpp b/debuggerd/crash_dump.cpp index 577e336b0..d79d20b8a 100644 --- a/debuggerd/crash_dump.cpp +++ b/debuggerd/crash_dump.cpp @@ -348,8 +348,16 @@ static pid_t wait_for_vm_process(pid_t pseudothread_tid) { return vm_pid; } +static void InstallSigPipeHandler() { + struct sigaction action = {}; + action.sa_handler = SIG_IGN; + action.sa_flags = SA_RESTART; + sigaction(SIGPIPE, &action, nullptr); +} + int main(int argc, char** argv) { DefuseSignalHandlers(); + InstallSigPipeHandler(); atrace_begin(ATRACE_TAG, "before reparent"); pid_t target_process = getppid(); |
