handlesig calls cleanup(), which is itself not async-signal-safe if `doclean != 0` as it wants to use `snprintf` -- while it notes that it "appears" to be safe on FreeBSD, we should strive to be correct here.
yeah the comment is wrong, it is no safer on FreeBSD than on any other *nix, but just like on any other *nix it will "appear" to work fine until you manage to trigger a signal at just the wrong time.