blob: 05baffd3827156f02efd67f3324051e9918b71a6 [file] [log] [blame]
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -08001#include <stdio.h>
2#include <string.h>
3
4#include <cutils/properties.h>
5
6int stop_main(int argc, char *argv[])
7{
8 char buf[1024];
9
10 if(argc > 1) {
11 property_set("ctl.stop", argv[1]);
12 } else{
13 /* default to "stop runtime" "stop zygote" */
14 property_set("ctl.stop", "runtime");
15 property_set("ctl.stop", "zygote");
16 }
17
18 return 0;
19}
20