mirror of
https://github.com/albfan/miraclecast.git
synced 2025-03-09 23:38:56 +00:00
We _must_ aggressively drain input queues before we signal any HUP. There might be queued messages that tell us important information about the termination of wpa_supplicant. Therefore, if a write() operation fails, we only signal HUP if the input queues are empty. However, we cannot rely on EPOLLIN to be set, as the input data might have arrived in between epoll_wait() and write(), therefore, always run the non-blocking read() in case write() failed. Signed-off-by: David Herrmann <dh.herrmann@gmail.com> |
||
|---|---|---|
| .. | ||
| ctl | ||
| dhcp | ||
| shared | ||
| wifi | ||
| miracled.c | ||
| miracled.h | ||