signal(i, SIG_DFL); /* crunch, crunch, crunch */
About this quote
- What does it mean?
- The code sets a signal handler to default and comments with a humorous 'crunch, crunch, crunch' indicating processing.
- In plain terms
- Reset signal handling to default with a light comment.
- What can you take from it?
- Restore default signal behavior when needed.
Where it applies
Putting it to work
Questions to consider
- When should you reset signals to default?
- What are the risks of leaving custom handlers?
Another view
The comment adds no technical value.
More from Larry Wall
/* we have tried to make this normal case as abnormal as possible */
Permalink to quote #258 Your csh still thinks true is false. Write to your vendor today and tell them that next year Configure ought to 'rm /bin/csh' unless they fix their blasted she…
Permalink to quote #257 You can't have filenames longer than 14 chars. You can't even think about them!
Permalink to quote #256
Related quotes
But, as it is, this pied collection begs your indulgence - it's been spun from threads both sad and humoristic, themes popular or idealistic, products of caref…
Aleksandr PushkinAleksandr Pushkin quote #6 Getting out of the hospital is a lot like resigning from a book club. You're not out of it until the computer says you're out of it.
Erma BombeckErma Bombeck quote #10 I sense that novel of my dreams is in the Remington SL3 - although it writes much faster than I can spell.
Tom RobbinsTom Robbins quote #16