Skip to content

Possible race condition when capturing, e.g., SIGTERM to shut down the app #75

@lmullen

Description

@lmullen

For a long time I've been puzzled as to why occasionally (but not really reproducibly) this app and other Go apps I've written fail to shut down cleanly even with code to capture SIGTERM and friends and distribute the shutdown logic via a context.

My friend Claude helped me see that I had created a possible race condition. Here is how I fixed similar code in a different app.

lmullen/chronam-headliner@c6f30b0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions