From 6490257d116c35d3da927ee7b91179dde64ef713 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Tue, 21 Sep 2010 15:49:06 -0700 Subject: Make netd restart when system server hangs on it. netd has been seen hanging (cause suspected but unconfirmed) which then brings down the system server which blocks forever on its main thread trying to connect to netd with its hung event loop. This then results in an infinite watchdog runtime restart loop because the situation never improves: netd is still borked. Instead, we should kill netd and give it another chance when the system server dies. Bug: 3018996 Bug: 3017876 Change-Id: Ibf9ecf0ffcb78e48c38e5167f21cbeefe0e2a47f --- rootdir/init.rc | 1 + 1 file changed, 1 insertion(+) (limited to 'rootdir') diff --git a/rootdir/init.rc b/rootdir/init.rc index 208ad42..6ef238d 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -323,6 +323,7 @@ service zygote /system/bin/app_process -Xzygote /system/bin --zygote --start-sys onrestart write /sys/android_power/request_state wake onrestart write /sys/power/state on onrestart restart media + onrestart restart netd service media /system/bin/mediaserver user media -- cgit v1.1