Skip to content
quotesby

About this quote

What does it mean?
A signal handler could trigger a condition at an unlucky moment, highlighting a race condition.
In plain terms
Signal timing can cause race conditions.
What can you take from it?
Be aware of timing issues with signals.

Where it applies

  • event handling
  • asynchronous programming

Putting it to work

  • protect critical sections
  • use atomic operations

Questions to consider

  • How can you test for rare timing bugs?

Another view

Not all race conditions are easy to reproduce.

More from Larry Wall

  1. Well, you can implement a Perl peek() with unpack('P',...). Once you have that, there's only security through obscurity. :-)

    Permalink to quote #140
  2. As pointed out in a followup, Real Perl Programmers prefer things to be visually distinct.

    Permalink to quote #142
  3. To ordinary folks, conversion is not always automatic. It's something that may or may not require explicit assistance. See Billy Graham. :-)

    Permalink to quote #139

Related quotes

  1. I'd make people say 'use Fork;' if I thought I could get away with it.

    Larry WallLarry Wall quote #197
  2. I can never look now at the Milky Way without wondering from which of those banked clouds of stars the emissaries are coming. If you will pardon so commonplace…

    Arthur C. ClarkeArthur C. Clarke quote #1
  3. We'll use a signal I have tried and found far-reaching and easy to yell. Waa-hoo!

    Zane GreyZane Grey quote #1