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.
In reply to Re^5: Print inside SIGNALS
by ikegami
in thread Print inside SIGNALS
by pedrete
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |