Commit Graph

3 Commits

Author SHA1 Message Date
Costin-Robert Sin
3e6cb639f0 Fix all formating problems to pass CI formating test
Signed-off-by: Costin-Robert Sin <sin.costinrobert@gmail.com>
2022-06-24 00:35:52 +03:00
Alan Somers
e5b9b972b2 Fix intermittency in test_timer::alarm_fires
The test was disabling the signal handler before disabling the timer.
Fix intermittent failures by:
* Reversing the cleanup order.
* Sleeping for a while before removing the signal handler, since POSIX
  does not guarantee that timer_delete will clear pending signals.

Also, speed up the timer to make the test suite complete faster.
2022-01-02 15:06:24 -07:00
Brian L. Troutwine
77febe0e6b
Introduce timer_* support
This commit adds support for the signal timer mechanism in POSIX, the
mirror to timerfd on Linux.

Resolves #1424

Signed-off-by: Brian L. Troutwine <brian@troutwine.us>
2021-12-30 20:40:48 -08:00