Skip to content
Snippets Groups Projects
Commit d1b5904d authored by Mark Grondona's avatar Mark Grondona
Browse files

o fix bug in _writable() for stderr 0 debug output

   (stderr could be disconnected but writable would return true)
parent 0d8af8ce
No related branches found
No related tags found
No related merge requests found
...@@ -1148,7 +1148,7 @@ _writable(io_obj_t *obj) ...@@ -1148,7 +1148,7 @@ _writable(io_obj_t *obj)
&& ((cbuf_used(io->buf) > 0) || io->eof)); && ((cbuf_used(io->buf) > 0) || io->eof));
if ((io->type == CLIENT_STDERR) && (io->id == 0)) if ((io->type == CLIENT_STDERR) && (io->id == 0))
rc = (rc || log_has_data()); rc = rc || (log_has_data() && !io->disconnected);
if (rc) if (rc)
debug3("%d %s is writable", io->id, _io_str[io->type]); debug3("%d %s is writable", io->id, _io_str[io->type]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment