From 917d37106ef93cfe30b4975ac9a2bddf60056ae8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Sun, 25 May 2003 16:59:47 +0000 Subject: [PATCH] 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 --- src/tests/add-ons/kernel/file_systems/fs_shell/fsh.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/tests/add-ons/kernel/file_systems/fs_shell/fsh.c b/src/tests/add-ons/kernel/file_systems/fs_shell/fsh.c index 9cb27d39e0..1cebca7d5d 100644 --- a/src/tests/add-ons/kernel/file_systems/fs_shell/fsh.c +++ b/src/tests/add-ons/kernel/file_systems/fs_shell/fsh.c @@ -1090,8 +1090,11 @@ do_startquery(int argc, char **argv) char *query; int err; + if (gQueryCookie != NULL) + do_stopquery(0, NULL); + if (argc != 2) { - printf("query string expected"); + printf("query string expected\n"); return; } query = argv[1]; @@ -1101,7 +1104,7 @@ do_startquery(int argc, char **argv) printf("could not open query: %s\n", strerror(err)); return; } else - printf("query started - use the 'stopquery' command to stop it."); + printf("query started - use the 'stopquery' command to stop it.\n"); }