Do not block on ctrl_iface monitor events
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 11 Jul 2013 13:19:19 +0000 (16:19 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 11 Jul 2013 14:04:29 +0000 (17:04 +0300)
commitb62b29ea875b49c6007857338aff8895f363618b
tree1fac3dafc6c4723bf8fdd9ef407b298f37423ca9
parenteb7ddbf108252f7ff30170b7fa62192cfd4cdc99
Do not block on ctrl_iface monitor events

It looks like some of the global control interface cases ended up
blocking in sendmsg() when trying to send an event. Since this can block
all wpa_supplicant processing for multiple seconds, this is very
undesirable. Avoid this by requesting sendmsg() to return an error
rather than waiting for the message to be sent.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
wpa_supplicant/ctrl_iface_unix.c