Merge changes I8b3e8a3b,I4976abef,I31dadb9c
* changes: tombstoned: silence spurious error messages. Actually don't start tombstoned until /data is mounted. debuggerd_handler: add SIGSYS to the list of handled signals.
This commit is contained in:
commit
a2fd28ee06
4 changed files with 11 additions and 4 deletions
|
|
@ -48,6 +48,7 @@ static void __attribute__((__unused__)) debuggerd_register_handlers(struct sigac
|
|||
#if defined(SIGSTKFLT)
|
||||
sigaction(SIGSTKFLT, action, nullptr);
|
||||
#endif
|
||||
sigaction(SIGSYS, action, nullptr);
|
||||
sigaction(SIGTRAP, action, nullptr);
|
||||
sigaction(DEBUGGER_SIGNAL, action, nullptr);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -85,7 +85,13 @@ static void find_oldest_tombstone() {
|
|||
std::string path = android::base::StringPrintf("%stombstone_%02zu", kTombstoneDirectory, i);
|
||||
struct stat st;
|
||||
if (stat(path.c_str(), &st) != 0) {
|
||||
PLOG(ERROR) << "failed to stat " << path;
|
||||
if (errno == ENOENT) {
|
||||
oldest_tombstone = i;
|
||||
break;
|
||||
} else {
|
||||
PLOG(ERROR) << "failed to stat " << path;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
if (st.st_mtime < oldest_time) {
|
||||
|
|
|
|||
|
|
@ -2,6 +2,9 @@ service tombstoned /system/bin/tombstoned
|
|||
user tombstoned
|
||||
group system
|
||||
|
||||
# Don't start tombstoned until after the real /data is mounted.
|
||||
class late_start
|
||||
|
||||
socket tombstoned_crash seqpacket 0666 system system
|
||||
socket tombstoned_intercept seqpacket 0666 system system
|
||||
writepid /dev/cpuset/system-background/tasks
|
||||
|
|
|
|||
|
|
@ -359,9 +359,6 @@ on post-fs-data
|
|||
start vold
|
||||
installkey /data
|
||||
|
||||
# start tombstoned to record early-boot crashes.
|
||||
start tombstoned
|
||||
|
||||
# Start bootcharting as soon as possible after the data partition is
|
||||
# mounted to collect more data.
|
||||
mkdir /data/bootchart 0755 shell shell
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue