Add a missing check for negative tv_sec when setting the timeout. Also clear the entire timeout if the remaining time becomes negative instead of just clearing tv_sec or tv_nsec. OK cheloha@.
millert 3 years ago 9c847fa8 055943a1