1
0
Fork 0
mirror of https://github.com/albfan/miraclecast.git synced 2025-03-09 23:38:56 +00:00
miraclecast/src
David Herrmann 9fdda3b09a wpas: drain input-queues before signalling HUP
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>
2014-03-28 12:40:17 +01:00
..
ctl Add new miracle-wifictl program 2014-03-19 13:10:30 +01:00
dhcp Change license to LGPL 2014-03-19 13:01:23 +01:00
shared wpas: drain input-queues before signalling HUP 2014-03-28 12:40:17 +01:00
wifi shl: remove custom offsetof helpers 2014-03-21 12:17:08 +01:00
miracled.c Remove old wifi code in miracled 2014-03-19 13:31:01 +01:00
miracled.h Remove old wifi code in miracled 2014-03-19 13:31:01 +01:00