hostapd/src
Jouni Malinen acbd59d0a8 eloop: Try to terminate more quickly on SIGINT and SIGTERM
It was possible for the SIGINT/SIGTERM signal to be received while
processing a pending timeout/socket/signal event and then get stuck in
the following select() call before processing the signal event. If no
other events show up within the two second SIGALRM trigger, process will
be terminated forcefully even though there would have been possibility
to do clean termination assuming no operationg blocked for that two
second time.

Handle this more cleanly by checking for eloop.pending_terminate before
starting the select()/poll()/epoll_wait() wait for the following event.
Terminate the loop if pending signal handling requests termination.

In addition, make eloop_terminated() return 1 on eloop.pending_terminate
in addition to eloop.terminate since the process will be terminated
shortly and there is no point in starting additional processing.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
2015-07-22 17:05:46 +03:00
..
ap Move ap_list_timer() to use common AP periodic cleanup mechanism 2015-07-20 13:42:35 +03:00
common Add QCA vendor definitions for multi-port concurrency 2015-07-22 11:50:01 +03:00
crypto Make TLS version number available in STATUS command 2015-07-08 19:51:03 +03:00
drivers hostap: Remove special handling for protocol version 3 on RX 2015-07-18 23:43:10 +03:00
eap_common EAP-SAKE: Make attribute parser more readable 2015-05-03 16:32:50 +03:00
eap_peer Make TLS version number available in STATUS command 2015-07-08 19:51:03 +03:00
eap_server EAP server: Force FAILURE if EAP method buildReq fails 2015-07-19 16:29:29 +03:00
eapol_auth Add EAPOL_SET hostapd command to configure EAPOL parameters 2015-07-12 11:34:18 +03:00
eapol_supp Send EAPOL-Start on HELD->CONNECTING transition 2015-07-07 19:25:31 +03:00
fst FST: Fix FST-MANAGER TEST_REQUEST parsing 2015-07-18 19:28:38 +03:00
l2_packet tests: Add eapol-fuzzer 2015-04-22 11:44:19 +03:00
p2p Use a single cleanup timer per wpa_supplicant process 2015-07-20 13:28:12 +03:00
pae MACsec: Update protect frames and replay on reauthentication 2014-12-09 16:56:10 +02:00
radius RADIUS DAS: Avoid compiler warning on abs() 2015-07-07 16:25:06 +03:00
rsn_supp RSN: Stop connection attempt on apparent PMK mismatch 2015-07-08 20:55:17 +03:00
tls libtommath: Fix mp_init_multi() stdarg use on error path 2015-06-23 20:39:08 +03:00
utils eloop: Try to terminate more quickly on SIGINT and SIGTERM 2015-07-22 17:05:46 +03:00
wps WPS: Avoid bogus static analyzer warning in ndef_parse_record() 2015-07-17 20:43:17 +03:00
lib.rules Add QUIET=1 option for make 2014-12-29 15:49:05 +02:00
Makefile FST: Add the Fast Session Transfer (FST) module 2015-07-16 18:26:15 +03:00