Closed alanzhao1 closed 6 months ago
@zturtleman - could you please take a look and approve/merge if this looks good? (I don't have permissions to add reviewers to PRs in this repo.)
Thanks.
This only affects the Unix-like dedicated server without a TTY and no map loaded (non-interactive server that fatal errored?) and the unused autoupdater. I tested the code path on macOS 10.6 (and 10.5 ppc binaries) and Debian 12 that it works and has similar CPU usage.
usleep(3) was declared obsolete in POSIX.1-2001 and removed in POSIX.1-2008 and nanosleep(2) was recommended to be used instead.