signal-safe fixes