diff options
author | Amit Chauhan <amitchauhan.gfs@gmail.com> | 2012-07-04 18:28:48 +0530 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2012-07-04 11:56:03 -0700 |
commit | 5934ce33f1aa09be452c04330f59a8ae1a1b04f9 (patch) | |
tree | 2b04635e2d26497febd393a48eab8f27b837b493 /cli | |
parent | e6e0e5bede9315db377afdec9c7bd92cfaa9c4bb (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>
Diffstat (limited to 'cli')
-rw-r--r-- | cli/src/cli-rl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/src/cli-rl.c b/cli/src/cli-rl.c index f9bf7c819..b4a5de013 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); |