The startquery command now stops an eventually running query (which now
makes several live queries at once impossible :-). git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3319 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
a1fe805b79
commit
917d37106e
@ -1090,8 +1090,11 @@ do_startquery(int argc, char **argv)
|
|||||||
char *query;
|
char *query;
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
|
if (gQueryCookie != NULL)
|
||||||
|
do_stopquery(0, NULL);
|
||||||
|
|
||||||
if (argc != 2) {
|
if (argc != 2) {
|
||||||
printf("query string expected");
|
printf("query string expected\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
query = argv[1];
|
query = argv[1];
|
||||||
@ -1101,7 +1104,7 @@ do_startquery(int argc, char **argv)
|
|||||||
printf("could not open query: %s\n", strerror(err));
|
printf("could not open query: %s\n", strerror(err));
|
||||||
return;
|
return;
|
||||||
} else
|
} else
|
||||||
printf("query started - use the 'stopquery' command to stop it.");
|
printf("query started - use the 'stopquery' command to stop it.\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user