Not all clients need nonblocking read, so add a flag to read in blocking mode. In that mode, events are only read from the fd when the queue is empty. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Not all clients need nonblocking read, so add a flag to read in blocking mode. In that mode, events are only read from the fd when the queue is empty. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>