summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmit Chauhan <amitchauhan.gfs@gmail.com>2012-07-04 18:28:48 +0530
committerAnand Avati <avati@redhat.com>2012-07-04 11:56:03 -0700
commit5934ce33f1aa09be452c04330f59a8ae1a1b04f9 (patch)
tree2b04635e2d26497febd393a48eab8f27b837b493
parente6e0e5bede9315db377afdec9c7bd92cfaa9c4bb (diff)
Gluster Cli:Pressing Control-d hangs gluster cli
Gluster Cli hangs on pressing CTRL+d. This happens due to break statement was used when it reads end of stdin. exit statement is used instead of break. Change-Id: I2b0e00c0c5fbe8cb9182a96c06ed052d79845087 BUG: 807563 Signed-off-by: Amit Chauhan <amitchauhan.gfs@gmail.com> Reviewed-on: http://review.gluster.com/3630 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Anand Avati <avati@redhat.com>
-rw-r--r--cli/src/cli-rl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/src/cli-rl.c b/cli/src/cli-rl.c
index f9bf7c81923..b4a5de01361 100644
--- a/cli/src/cli-rl.c
+++ b/cli/src/cli-rl.c
@@ -374,7 +374,7 @@ cli_rl_input (void *_data)
for (;;) {
line = readline (state->prompt);
if (!line)
- break;
+ exit(0); //break;
cli_rl_process_line (line);