Skip to content
Browse files

Restart surfaceflinger with stop/start too.

Change-Id: Ide045fc3baced9e1bde95cb26d0b835511c21780
  • Loading branch information...
1 parent cf01597 commit d8ed091c6eaa5f44b84407af5d8e902f9358dc60 @bradfitz bradfitz committed
Showing with 6 additions and 6 deletions.
  1. +4 −3 toolbox/start.c
  2. +2 −3 toolbox/stop.c
View
7 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;
}
View
5 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;
}
-

0 comments on commit d8ed091

Please sign in to comment.
Something went wrong with that request. Please try again.