Signal Handlers
all the previous examples show basically the same issue
non-atomic operations can get interrupted, and you end up in an inconsistent or otherwise unexpected state
most functions are not signal handler safe, due to that