summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2021-06-24 01:10:30 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2021-06-24 01:10:30 +0000
commitb0420807041ce49df4729339dc56c9beb3ba7717 (patch)
tree9b0e25b1a12515fba3598ff96802fdf83f254758
parent4965842534eb41695284aa9abdf3fd5e1af3ea36 (diff)
parent8449fac88ee70e329d856377a85456d27f2eef35 (diff)
downloadnetd-b0420807041ce49df4729339dc56c9beb3ba7717.tar.gz
Snap for 7486544 from 8449fac88ee70e329d856377a85456d27f2eef35 to sc-release
Change-Id: I36d35b7042daec798b41e46b4ad6c542fbb706f1
-rw-r--r--server/Controllers.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/server/Controllers.cpp b/server/Controllers.cpp
index 7e2780f0..1f2bac22 100644
--- a/server/Controllers.cpp
+++ b/server/Controllers.cpp
@@ -285,6 +285,12 @@ void Controllers::init() {
netdutils::Status tcStatus = trafficCtrl.start();
if (!isOk(tcStatus)) {
gLog.error("Failed to start trafficcontroller: (%s)", toString(tcStatus).c_str());
+ gLog.error("CRITICAL: sleeping 60 seconds, netd exiting with failure, crash loop likely!");
+ // The expected reason we get here is a major kernel or other code bug, as such
+ // the probability that things will succeed on restart of netd is pretty small.
+ // So, let's wait a minute to at least try to limit the log spam a little bit.
+ sleep(60);
+ exit(1);
}
gLog.info("Initializing traffic control: %" PRId64 "us", s.getTimeAndResetUs());