in reply to Re^4: Print inside SIGNALS
in thread Print inside SIGNALS
First snippet: <> can't be interrupted because there's no way to check <> for errors. However, the signal handler does get called once it returns.
Second snippet: There's nothing to interrupt here, so the signal handler gets called immediately. However, since the program has no way of terminating the program cleanly, the message will never leave STDOUT's buffer to the underlying file system handle.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Print inside SIGNALS
by haukex (Archbishop) on Jul 17, 2018 at 11:50 UTC | |
by ikegami (Patriarch) on Jul 17, 2018 at 16:18 UTC | |
by haukex (Archbishop) on Jul 17, 2018 at 18:14 UTC | |
by ikegami (Patriarch) on Jul 18, 2018 at 11:20 UTC | |
by haukex (Archbishop) on Jul 18, 2018 at 14:40 UTC | |
|