diff options
author | Narayan Kamath <narayan@google.com> | 2014-05-09 17:56:33 +0100 |
---|---|---|
committer | Narayan Kamath <narayan@google.com> | 2014-05-13 17:32:43 +0100 |
commit | 22e22acbf0aa5cf11131cc8f7269fbe268fd0e9e (patch) | |
tree | 4267effb641eab96a74450b2a4f6820fa904164a /toolbox | |
parent | 9428a2898c346aeff66922704d153f8bbacbcfa3 (diff) | |
download | system_core-22e22acbf0aa5cf11131cc8f7269fbe268fd0e9e.zip system_core-22e22acbf0aa5cf11131cc8f7269fbe268fd0e9e.tar.gz system_core-22e22acbf0aa5cf11131cc8f7269fbe268fd0e9e.tar.bz2 |
"stop" / "start must apply to the secondary zygote as well.
Would've been nice if we could use the sys property
observer to start and stop all services in a service
class but service classes do not appear to be fully
supported.
Change-Id: Iaf17a2dbcf913c4c646bc1e8e13adee9f952c45e
Diffstat (limited to 'toolbox')
-rw-r--r-- | toolbox/start.c | 1 | ||||
-rw-r--r-- | toolbox/stop.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/toolbox/start.c b/toolbox/start.c index 665a941..26344da 100644 --- a/toolbox/start.c +++ b/toolbox/start.c @@ -15,6 +15,7 @@ int start_main(int argc, char *argv[]) /* defaults to starting the common services stopped by stop.c */ property_set("ctl.start", "surfaceflinger"); property_set("ctl.start", "zygote"); + property_set("ctl.start", "zygote_secondary"); } return 0; diff --git a/toolbox/stop.c b/toolbox/stop.c index 460f377..6552c7c 100644 --- a/toolbox/stop.c +++ b/toolbox/stop.c @@ -11,6 +11,7 @@ int stop_main(int argc, char *argv[]) property_set("ctl.stop", argv[1]); } else{ /* defaults to stopping the common services */ + property_set("ctl.stop", "zygote_secondary"); property_set("ctl.stop", "zygote"); property_set("ctl.stop", "surfaceflinger"); } |