From 5934ce33f1aa09be452c04330f59a8ae1a1b04f9 Mon Sep 17 00:00:00 2001 From: Amit Chauhan Date: Wed, 4 Jul 2012 18:28:48 +0530 Subject: 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 Reviewed-on: http://review.gluster.com/3630 Tested-by: Gluster Build System Reviewed-by: Anand Avati --- cli/src/cli-rl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli') 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); -- cgit