timeval: Block SIGALRM when sleeping.
authorEthan Jackson <ethan@nicira.com>
Tue, 16 Oct 2012 00:05:35 +0000 (17:05 -0700)
committerEthan Jackson <ethan@nicira.com>
Tue, 16 Oct 2012 22:02:45 +0000 (15:02 -0700)
commit61a7b1e6fee6c81b0d8551898d2b108de2b42536
tree87ab31460182407376c9ae7212c03f31d23fe75e
parentb19e8793390f788a4e394d049ea64ce0161ad923
timeval: Block SIGALRM when sleeping.

Commit 00a16895 (timeval: Don't require signals for time_alarm().)
Incorrectly disabled signals when when CACHE_TIME was disabled.  In
fact, the reverse was correct.  As a result of this bug, OVS would
wake once every 100ms unnecessarily.  It shouldn't have affected
correctness otherwise.

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