Hacker News new | ask | show | jobs
by Someone 1678 days ago
That introduces a time-of-check to time-of-use bug (https://en.wikipedia.org/wiki/Time-of-check_to_time-of-use).
2 comments

Aha. If only the API was "Execute a user-provided function in a context where the computer is guaranteed to be on".
Ah, good ole TOCTOU