static struct termios sterm;
#endif /* TIZEN */
-static char *appid = NULL;
static int app_pid = -1;
static int cmd_pid = -1;
static int cmd_idx = -1;
}
static struct option long_options[] = {
- {"appid", required_argument, 0, 'a'},
{"pipe", required_argument, 0, 'p'},
{"exec", required_argument, 0, 'e'},
{"error", required_argument, 0, 'o'},
int option_index;
int result = -1;
- result = getopt_long(argc, argv, "-a:p:ve:o:it:wc:d:s:E::",
+ result = getopt_long(argc, argv, "-p:ve:o:it:wc:d:s:E::",
long_options, &option_index);
if (result == 1) {
}
switch (result) {
- case 'a': CheckValue(&appid, "appid"); break;
case 'p': CheckValue(&pname, "pipe name"); break;
case 'e': CheckValue(&ename, "exe name"); break;
case 'o': CheckValue(&oname, "error name"); break;
while (!process_option(argc, argv));
atexit(finish);
-#if TIZEN
- if (appid == NULL) {
- log_error("Unknown app id");
- exit(1);
- }
-#endif /* TIZEN */
if (oname == NULL) {
oname = "/tmp/profctl.log";