timeval: Don't require signals for time_alarm().
authorEthan Jackson <ethan@nicira.com>
Fri, 5 Oct 2012 00:57:16 +0000 (17:57 -0700)
committerEthan Jackson <ethan@nicira.com>
Fri, 5 Oct 2012 18:17:00 +0000 (11:17 -0700)
commit00a16895875658e14f0c95a5e7d179b70b7c57b5
treec9934774933b587d9e02e21e6f55f4663c1b0646
parent1d446463ea3707ee609ea45f0cd2714aa7f5bfc6
timeval: Don't require signals for time_alarm().

Before this patch, time_alarm() used the SIGALRM handler to notify
the poll loop that it should exit the program.  Instead, this patch
simply implements time_alarm() directly in the pool loop.  This
significantly simplifies the code, while removing a call to
timer_create() which is not currently supported on ESX.

Signed-off-by: Ethan Jackson <ethan@nicira.com>
lib/timeval.c