• Fabian Henneke's avatar
    hidraw: Return EPOLLOUT from hidraw_poll · 378b8037
    Fabian Henneke authored
    Always return EPOLLOUT from hidraw_poll when a device is connected.
    This is safe since writes are always possible (but will always block).
    
    hidraw does not support non-blocking writes and instead always calls
    blocking backend functions on write requests. Hence, so far, a call to
    poll never returned EPOLLOUT, which confuses tools like socat.
    Signed-off-by: default avatarFabian Henneke <fabian.henneke@gmail.com>
    In-reply-to: <CA+hv5qkyis03CgYTWeWX9cr0my-d2Oe+aZo+mjmWRXgjrGqyrw@mail.gmail.com>
    Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
    378b8037
hidraw.c 13.5 KB