mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-04-05 04:06:08 +00:00
LibCore: Allow listening for socket errors and hang-ups
This commit is contained in:
committed by
Andrew Kaster
parent
6836091a21
commit
506707cc2b
@@ -267,6 +267,10 @@ try_select_again:
|
||||
type |= NotificationType::Read;
|
||||
if (has_flag(revents, POLLOUT))
|
||||
type |= NotificationType::Write;
|
||||
if (has_flag(revents, POLLHUP))
|
||||
type |= NotificationType::HangUp;
|
||||
if (has_flag(revents, POLLERR))
|
||||
type |= NotificationType::Error;
|
||||
type &= notifier.type();
|
||||
if (type != NotificationType::None)
|
||||
ThreadEventQueue::current().post_event(notifier, make<NotifierActivationEvent>(notifier.fd(), type));
|
||||
|
||||
Reference in New Issue
Block a user