Always set POLLOUT on slave poll
This commit is contained in:
@@ -955,13 +955,15 @@ ttynvt_poll(fuse_req_t req, struct fuse_file_info *info,
|
|||||||
struct fuse_pollhandle *ph)
|
struct fuse_pollhandle *ph)
|
||||||
{
|
{
|
||||||
ttynvt_t *tty = (ttynvt_t *) (uintptr_t) info->fh;
|
ttynvt_t *tty = (ttynvt_t *) (uintptr_t) info->fh;
|
||||||
int revents = 0;
|
int revents;
|
||||||
|
|
||||||
DBG2("%s: tty->pollin=%d tty->error/epipe=%d/%d\n",
|
DBG2("%s: tty->pollin=%d tty->error/epipe=%d/%d\n",
|
||||||
__func__, tty->pollin, tty->error, tty->epipe);
|
__func__, tty->pollin, tty->error, tty->epipe);
|
||||||
|
|
||||||
_update_notify(tty, ph);
|
_update_notify(tty, ph);
|
||||||
|
|
||||||
|
revents = POLLOUT;
|
||||||
|
|
||||||
if (tty->pollin)
|
if (tty->pollin)
|
||||||
{
|
{
|
||||||
tty->pollin = 0;
|
tty->pollin = 0;
|
||||||
@@ -970,7 +972,7 @@ ttynvt_poll(fuse_req_t req, struct fuse_file_info *info,
|
|||||||
if (tty->error)
|
if (tty->error)
|
||||||
{
|
{
|
||||||
if (tty->epipe == 0)
|
if (tty->epipe == 0)
|
||||||
revents = POLLHUP | POLLIN;
|
revents |= POLLHUP | POLLIN;
|
||||||
else
|
else
|
||||||
revents = 0;
|
revents = 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user