Support more precise resolution timeout.
alarm(2) supports only second resolution timer.
setitimer supports more precise (useconds), so replace it.
This CL fixes some minor timing issues, assuming that
there is no other thread that tries to update signal handler
and the timer.
Commit-Ready: Hidehiko Abe <firstname.lastname@example.org>
Tested-by: Hidehiko Abe <email@example.com>
Reviewed-by: Prathmesh Prabhu <firstname.lastname@example.org>
2 files changed