diff options
| author | Brad Fitzpatrick <bradfitz@android.com> | 2011-03-07 10:43:49 -0800 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-03-07 10:43:49 -0800 |
| commit | 48a7c2f9b1cc7fe5c4df253959a13b473f827c61 (patch) | |
| tree | ef9bc381b1fbeb81931c37cd177b76d7ebb9d04e /toolbox | |
| parent | 4fc3706015b80cc9b02305062467458215f38f33 (diff) | |
| parent | d8ed091c6eaa5f44b84407af5d8e902f9358dc60 (diff) | |
| download | system_core-48a7c2f9b1cc7fe5c4df253959a13b473f827c61.tar.gz system_core-48a7c2f9b1cc7fe5c4df253959a13b473f827c61.tar.bz2 system_core-48a7c2f9b1cc7fe5c4df253959a13b473f827c61.zip | |
Merge "Restart surfaceflinger with stop/start too."
Diffstat (limited to 'toolbox')
| -rw-r--r-- | toolbox/start.c | 7 | ||||
| -rw-r--r-- | toolbox/stop.c | 5 |
2 files changed, 6 insertions, 6 deletions
diff --git a/toolbox/start.c b/toolbox/start.c index 3bd9fbbb..665a9419 100644 --- a/toolbox/start.c +++ b/toolbox/start.c @@ -8,13 +8,14 @@ int start_main(int argc, char *argv[]) { char buf[1024]; + if(argc > 1) { property_set("ctl.start", argv[1]); } else { - /* default to "start zygote" "start runtime" */ + /* defaults to starting the common services stopped by stop.c */ + property_set("ctl.start", "surfaceflinger"); property_set("ctl.start", "zygote"); - property_set("ctl.start", "runtime"); } - + return 0; } diff --git a/toolbox/stop.c b/toolbox/stop.c index 05baffd3..460f3776 100644 --- a/toolbox/stop.c +++ b/toolbox/stop.c @@ -10,11 +10,10 @@ int stop_main(int argc, char *argv[]) if(argc > 1) { property_set("ctl.stop", argv[1]); } else{ - /* default to "stop runtime" "stop zygote" */ - property_set("ctl.stop", "runtime"); + /* defaults to stopping the common services */ property_set("ctl.stop", "zygote"); + property_set("ctl.stop", "surfaceflinger"); } return 0; } - |
