Re: [PATCH 5/6] vcs: poll(): cope with a deallocated vt

2019-01-09 Thread Nicolas Pitre
On Tue, 8 Jan 2019, Nicolas Pitre wrote: > When VT_DISALLOCATE is used on a vt, user space waiting with poll() on > the corresponding /dev/vcs device is not awakened. This is now fixed by > returning POLLHUP|POLLERR to user space. > > Also, in the normal screen update case, we don't set POLLERR

[PATCH 5/6] vcs: poll(): cope with a deallocated vt

2019-01-08 Thread Nicolas Pitre
When VT_DISALLOCATE is used on a vt, user space waiting with poll() on the corresponding /dev/vcs device is not awakened. This is now fixed by returning POLLHUP|POLLERR to user space. Also, in the normal screen update case, we don't set POLLERR anymore as POLLPRI alone is a much more logical