From 71548aabb7c399a0c70d0ab3816762f6f5d4eb03 Mon Sep 17 00:00:00 2001 From: sdottaka Date: Sat, 3 Jan 2015 14:52:11 +0900 Subject: Add fflush() (2) --- mrbgems/mruby-bin-debugger/tools/mrdb/cmdmisc.c | 1 + 1 file changed, 1 insertion(+) (limited to 'mrbgems/mruby-bin-debugger/tools') diff --git a/mrbgems/mruby-bin-debugger/tools/mrdb/cmdmisc.c b/mrbgems/mruby-bin-debugger/tools/mrdb/cmdmisc.c index 74e10ab5a..6520af46e 100755 --- a/mrbgems/mruby-bin-debugger/tools/mrdb/cmdmisc.c +++ b/mrbgems/mruby-bin-debugger/tools/mrdb/cmdmisc.c @@ -466,6 +466,7 @@ dbgcmd_quit(mrb_state *mrb, mrdb_state *mrdb) int buf; printf("The program is running. Exit anyway? (y or n) "); + fflush(stdout); if ((buf = getchar()) == EOF) { mrdb->dbg->xm = DBG_QUIT; -- cgit v1.2.3