Skip to content

Default sleep infinity doesn't respond to interrupts #467

@djmcgreal-cc

Description

@djmcgreal-cc

I don't know if it's optimal but I usually do:

#!/usr/bin/env sh

terminate() {
	exit 0
}
trap terminate TERM
sleep infinity &
wait

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions