CVSROOT:        /cvs
Module name:    src
Changes by:     an...@cvs.openbsd.org   2018/11/19 12:19:24

Modified files:
        sys/dev/wscons : wsevent.c wseventvar.h wskbd.c wsmouse.c 
                         wsmux.c 

Log message:
Utilize sigio with wscons. The old behavior of always making the process group
of the process who opens the device the default recipient of sigio is removed as
a side-effect of this change. Issuing ioctl(FIOSETOWN) is therefore mandatory in
order to receive sigio, which is more consistent with other subsystems
supporting sigio.

This change is all made possible by the new sigio(9) API and prevents wscons
from keeping a pointer to the recipient process. Usage of such pointer could
cause a panic since wscons is not inform on process deallocation, leaving a
dangling pointer behind.

ok mpi@ visa@

Reply via email to