---
title: "It may be possible to get this condition from within Perl if a signal… — Larry Wall Quote #141 | QuotesBy.net"
description: "It may be possible to get this condition from within Perl if a signal handler runs at just the wrong moment. Another point for Chip... :-) — a quote by Larry Wall."
image: "https://quotesby.net/wp-content/themes/quotesby-editorial/assets/og-default.png"
---

> # It may be possible to get this condition from within Perl if a signal handler runs at just the wrong moment. Another point for Chip... :-)

[Larry Wall](https://quotesby.net/Larry-Wall)\#141

[Perl](https://quotesby.net/Larry-Wall/perl/)

[WhatsApp (opens in a new tab)](https://wa.me/?text=%E2%80%9CIt%20may%20be%20possible%20to%20get%20this%20condition%20from%20within%20Perl%20if%20a%20signal%20handler%20runs%20at%20just%20the%20wrong%20moment.%20Another%20point%20for%20Chip...%20%3A-%29%E2%80%9D%20%E2%80%94%20Larry%20Wall%20https%3A%2F%2Fquotesby.net%2FLarry-Wall%2F141%2F)[X (opens in a new tab)](https://twitter.com/intent/tweet?text=%E2%80%9CIt%20may%20be%20possible%20to%20get%20this%20condition%20from%20within%20Perl%20if%20a%20signal%20handler%20runs%20at%20just%20the%20wrong%20moment.%20Another%20point%20for%20Chip...%20%3A-%29%E2%80%9D%20%E2%80%94%20Larry%20Wall&url=https%3A%2F%2Fquotesby.net%2FLarry-Wall%2F141%2F)[Facebook (opens in a new tab)](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fquotesby.net%2FLarry-Wall%2F141%2F)

## About this quote

What does it mean?A signal handler could trigger a condition at an unlucky moment, highlighting a race condition.In plain termsSignal 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](https://quotesby.net/Larry-Wall/140/ "Permalink to quote 140")
2. > As pointed out in a followup, Real Perl Programmers prefer things to be visually distinct.

[Permalink to quote \#142](https://quotesby.net/Larry-Wall/142/ "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](https://quotesby.net/Larry-Wall/139/ "Permalink to quote 139")

## Related quotes

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

[Larry Wall](https://quotesby.net/Larry-Wall)[Larry Wall quote \#197](https://quotesby.net/Larry-Wall/197/ "Permalink to 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. Clarke](https://quotesby.net/Arthur-C.-Clarke)[Arthur C. Clarke quote \#1](https://quotesby.net/Arthur-C.-Clarke/1/ "Permalink to quote 1")
3. > We'll use a signal I have tried and found far-reaching and easy to yell. Waa-hoo!

[Zane Grey](https://quotesby.net/Zane-Grey)[Zane Grey quote \#1](https://quotesby.net/Zane-Grey/1/ "Permalink to quote 1")

```json
{
    "@context": "https://schema.org",
    "@type": "Quotation",
    "text": "It may be possible to get this condition from within Perl if a signal handler runs at just the wrong moment. Another point for Chip... :-)",
    "url": "https://quotesby.net/Larry-Wall/141/",
    "spokenByCharacter": {
        "@type": "Person",
        "name": "Larry Wall"
    }
}
{
    "@context": "https://schema.org",
    "@type": "BreadcrumbList",
    "itemListElement": [
        {
            "@type": "ListItem",
            "position": 1,
            "name": "Home",
            "item": "https://quotesby.net/"
        },
        {
            "@type": "ListItem",
            "position": 2,
            "name": "Authors",
            "item": "https://quotesby.net/authors/"
        },
        {
            "@type": "ListItem",
            "position": 3,
            "name": "Larry Wall",
            "item": "https://quotesby.net/Larry-Wall"
        },
        {
            "@type": "ListItem",
            "position": 4,
            "name": "Quote #141",
            "item": "https://quotesby.net/Larry-Wall/141/"
        }
    ]
}
```
