diff options
author | unknown <knielsen@knielsen-hq.org> | 2012-02-22 12:14:34 +0100 |
---|---|---|
committer | unknown <knielsen@knielsen-hq.org> | 2012-02-22 12:14:34 +0100 |
commit | 9305f2b52f8a219737653fa88ba022c901f2831b (patch) | |
tree | 4b00876e2caec3792a3a61b1e084e10d0d0e270f /dbug | |
parent | f2db5ef4ba128c86d02e6571f9aba907b8ea64c3 (diff) | |
parent | 925942e7af49eebc5ffeff705bb2167eb86a9dcb (diff) | |
download | mariadb-git-9305f2b52f8a219737653fa88ba022c901f2831b.tar.gz |
Merge latest MariaDB 5.5 into MWL#192: Non-blocking client library.
Diffstat (limited to 'dbug')
-rw-r--r-- | dbug/dbug.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/dbug/dbug.c b/dbug/dbug.c index eb7a0e9c4b6..799c6bc8113 100644 --- a/dbug/dbug.c +++ b/dbug/dbug.c @@ -1884,6 +1884,8 @@ static void DBUGOpenFile(CODE_STATE *cs, name=cs->stack->name; if (strcmp(name, "-") == 0) { + if (!is_shared(cs->stack, out_file)) + DBUGCloseFile(cs, cs->stack->out_file); cs->stack->out_file= stdout; cs->stack->flags |= FLUSH_ON_WRITE; cs->stack->name[0]=0; @@ -1906,6 +1908,8 @@ static void DBUGOpenFile(CODE_STATE *cs, } else { + if (!is_shared(cs->stack, out_file)) + DBUGCloseFile(cs, cs->stack->out_file); cs->stack->out_file= fp; } } |