No, "it didn't work" for you because you killed the program before the signal handler was called.
Have you tried the one-liners yourself? (I ran them on Ubuntu Linux, in case that makes a difference.)
Are you saying you are observing different behavior than I am? If so, what is that behavior?
If you're saying it's not a buffering issue, what do you think is causing the different behavior of the first two of my one-liners above?
In reply to Re^8: Print inside SIGNALS
by haukex
in thread Print inside SIGNALS
by pedrete
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |