Merge "debuggerd can't handle debuggerd crashes"

This commit is contained in:
Andy McFadden 2011-07-29 12:59:30 -07:00 committed by Android (Google) Code Review
commit 17a5252f0e
1 changed files with 12 additions and 0 deletions

View File

@ -695,6 +695,18 @@ int main()
struct sigaction act;
int logsocket = -1;
/*
* debuggerd crashes can't be reported to debuggerd. Reset all of the
* crash handlers.
*/
signal(SIGILL, SIG_DFL);
signal(SIGABRT, SIG_DFL);
signal(SIGBUS, SIG_DFL);
signal(SIGFPE, SIG_DFL);
signal(SIGSEGV, SIG_DFL);
signal(SIGSTKFLT, SIG_DFL);
signal(SIGPIPE, SIG_DFL);
logsocket = socket_local_client("logd",
ANDROID_SOCKET_NAMESPACE_ABSTRACT, SOCK_DGRAM);
if(logsocket < 0) {