version 1.276, 2021/08/27 17:15:57 |
version 1.277, 2021/10/07 07:52:13 |
|
|
size_t len = EVBUFFER_LENGTH(buffer); |
size_t len = EVBUFFER_LENGTH(buffer); |
|
|
wp = window_pane_find_by_id(cdata->wp); |
wp = window_pane_find_by_id(cdata->wp); |
if (wp == NULL || closed || error != 0 || c->flags & CLIENT_DEAD) { |
if (wp == NULL || closed || error != 0 || (c->flags & CLIENT_DEAD)) { |
if (wp == NULL) |
if (wp == NULL) |
c->flags |= CLIENT_EXIT; |
c->flags |= CLIENT_EXIT; |
|
|
|
|
*cause = xstrdup("pane is not empty"); |
*cause = xstrdup("pane is not empty"); |
return (-1); |
return (-1); |
} |
} |
|
if (c->flags & (CLIENT_DEAD|CLIENT_EXITED)) |
|
return (1); |
|
if (c->session != NULL) |
|
return (1); |
|
|
cdata = xmalloc(sizeof *cdata); |
cdata = xmalloc(sizeof *cdata); |
cdata->item = item; |
cdata->item = item; |