Changeset: 62ea22e06b15 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=62ea22e06b15
Modified Files:
        monetdb5/mal/mal_session.c
Branch: malparsing
Log Message:

make sure we only flush the stream on the console for non blocked (ie file/tty 
io) streams.


diffs (16 lines):

diff --git a/monetdb5/mal/mal_session.c b/monetdb5/mal/mal_session.c
--- a/monetdb5/mal/mal_session.c
+++ b/monetdb5/mal/mal_session.c
@@ -603,9 +603,9 @@ MALreader(Client c)
                                        mnstr_write(c->fdout, c->prompt, 
strlen(c->prompt), 1);
                                mnstr_flush(c->fdout);
                                c->fdin->eof = 0;
-                       } else
-                       if( ! blocked && c->prompt){
-                                       mnstr_write(c->fdout, c->prompt, 
strlen(c->prompt), 1);
+                       /* console prompt */
+                       } else if(!blocked && c->prompt && c->prompt[0]){
+                               mnstr_write(c->fdout, c->prompt, 
strlen(c->prompt), 1);
                                mnstr_flush(c->fdout);
                        }
                        nr = bstream_next(c->fdin);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to