in reply to Re^3: Print inside SIGNALS
in thread Print inside SIGNALS

If your C library's print function isn't re-entrant (many aren't), then there's always a chance that weird things happen when the signal goes off while your code is printing something.

That's not true for two reasons:

Replies are listed 'Best First'.
Re^5: Print inside SIGNALS
by haj (Vicar) on Jul 16, 2018 at 14:41 UTC
    Thanks for the correction! The rule "don't print in signal handling" stuck with me for too long, I should have checked this.