diff options
author | Sreeram Ramachandran <sreeram@google.com> | 2014-07-19 00:47:59 -0700 |
---|---|---|
committer | Sreeram Ramachandran <sreeram@google.com> | 2014-07-19 18:36:32 +0000 |
commit | 018c6a57f3ba41b46deb8dc5fe542765e5b78791 (patch) | |
tree | c9fb67383cf49731d57817faca1b2b75c29f8d76 /toolbox/stop.c | |
parent | d8b00c89bfe7fb09fa85b458f2232e25127c15dd (diff) | |
download | system_core-018c6a57f3ba41b46deb8dc5fe542765e5b78791.zip system_core-018c6a57f3ba41b46deb8dc5fe542765e5b78791.tar.gz system_core-018c6a57f3ba41b46deb8dc5fe542765e5b78791.tar.bz2 |
Stop and start netd explicitly for "adb shell stop/start".
netd is supposed to be restarted when the zygote is restarted (see the
"onrestart" section for "service zygote" in init.zygote*.rc). But this
only works if you send a restart command (say via "ctl.restart").
"stop && start" != "restart". It seems ingrained in developers to do
"stop && start", so we don't have much hope of convincing everyone to
switch to "adb shell restart", even if we did add such a toolbox command.
Bug: 15855807
Change-Id: I387fe86600f4a2862abc3a05a2ef9a1e7374e21d
Diffstat (limited to 'toolbox/stop.c')
-rw-r--r-- | toolbox/stop.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/toolbox/stop.c b/toolbox/stop.c index ed9a293..5e3ce3c 100644 --- a/toolbox/stop.c +++ b/toolbox/stop.c @@ -12,6 +12,7 @@ int stop_main(int argc, char *argv[]) property_set("ctl.stop", "zygote_secondary"); property_set("ctl.stop", "zygote"); property_set("ctl.stop", "surfaceflinger"); + property_set("ctl.stop", "netd"); } return 0; |