Summary
Replace usleep() calls with nanosleep() (or wrapper) for modern POSIX compatibility.
Work
- Introduce a small sleep helper wrapper in a shared location.
- Migrate call sites in
ping.c, spine.c, sql.c, php.c, poller.c, and nft_popen.c.
- Handle EINTR robustly where needed.
Acceptance Criteria
- No direct
usleep() in top-level runtime sources.
- Sleep semantics remain equivalent at current intervals.
- Interrupted sleeps are handled safely and consistently.
Summary
Replace
usleep()calls withnanosleep()(or wrapper) for modern POSIX compatibility.Work
ping.c,spine.c,sql.c,php.c,poller.c, andnft_popen.c.Acceptance Criteria
usleep()in top-level runtime sources.