There is no need to do so because the signal handler does not read or
write 'deadline'.
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
long long int now;
long long int msecs;
- sigset_t oldsigs;
-
time_init();
time_refresh();
now = time_msec();
msecs = secs * 1000LL;
-
- block_sigalrm(&oldsigs);
deadline = now < LLONG_MAX - msecs ? now + msecs : LLONG_MAX;
- unblock_sigalrm(&oldsigs);
}
/* Like poll(), except: