summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-bin-debugger/tools
diff options
context:
space:
mode:
authorsdottaka <[email protected]>2015-01-03 14:52:11 +0900
committersdottaka <[email protected]>2015-01-03 14:52:11 +0900
commit71548aabb7c399a0c70d0ab3816762f6f5d4eb03 (patch)
treea53eb8e5b48de9edb65583b663eac40a1dc2bce6 /mrbgems/mruby-bin-debugger/tools
parent9a0fb6f91bcb15459541d926acdb044632393be4 (diff)
downloadmruby-71548aabb7c399a0c70d0ab3816762f6f5d4eb03.tar.gz
mruby-71548aabb7c399a0c70d0ab3816762f6f5d4eb03.zip
Add fflush() (2)
Diffstat (limited to 'mrbgems/mruby-bin-debugger/tools')
-rwxr-xr-xmrbgems/mruby-bin-debugger/tools/mrdb/cmdmisc.c1
1 files changed, 1 insertions, 0 deletions
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;