Commit f091ff45 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

TCP connections don't quite behave like other fds, and we need to handle

that for the managers CLI event-engine:

React to POLLNVAL as we would to POLLHUP


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2286 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent c7210cb2
......@@ -301,7 +301,7 @@ mgt_cli_callback(const struct ev *e, int what)
CAST_OBJ_NOTNULL(cp, e->priv, CLI_PORT_MAGIC);
if (what & (EV_ERR | EV_HUP))
if (what & (EV_ERR | EV_HUP | EV_GONE))
goto cli_close;
/* grow the buffer if it is full */
......
......@@ -50,6 +50,7 @@ struct ev {
#define EV_WR POLLOUT
#define EV_ERR POLLERR
#define EV_HUP POLLHUP
#define EV_GONE POLLNVAL
#define EV_SIG -1
int sig;
unsigned sig_flags;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment