summaryrefslogtreecommitdiffstats
path: root/liblog
diff options
context:
space:
mode:
authorTom Cherry2018-07-20 17:26:25 -0500
committerTom Cherry2018-07-20 17:30:14 -0500
commit74069d17347eb64ec932831f8383448fd16e6e0f (patch)
treeb147aa8faa8d579ba9f479ac8896b0c248ebcc0f /liblog
parent74be24d696f2d67293de6b9bb6e715c1728abed7 (diff)
downloadplatform-system-core-74069d17347eb64ec932831f8383448fd16e6e0f.tar.gz
platform-system-core-74069d17347eb64ec932831f8383448fd16e6e0f.tar.xz
platform-system-core-74069d17347eb64ec932831f8383448fd16e6e0f.zip
init: clean up logging initialization
Clean up a few mistakes in logging initialization 1) Only init needs to clear stdout/stderr/stdin, so remove this from ueventd, watchdogd, and subcontext init 2) Only init should reboot due to FATAL errors. This was true even before this change due to getpid() checks, but there's no reason to not just use the DefaultAborter for other processes. 3) It's probably a mistake for FATAL logs in init to try to gracefully shutdown the system, so simply call RebootSystem() here. 4) Lastly, remove log.cpp since it's not actually shared code anymore Test: build Change-Id: Ic8c323393dc7ee98ed6bb9691361b51d0d915267
Diffstat (limited to 'liblog')
0 files changed, 0 insertions, 0 deletions