Skip to content

libs/common: Remove TrapSignal() #2464

@alessio

Description

@alessio

It is quite conventional in the UNIX world to return 128 + signal code upon exit due to a signal, so I'd suggest TrapSignal() call os.Exit(128 + int($signalcode)) instead of os.Exit(1)

Tendermint version: develop

ABCI app: Gaia

Environment: Ubuntu 18.04

CC'ing @jaekwon, who appears to be the original author of the function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C:libsComponent: LibraryT:code-hygieneGeneral cleanup and restructuring of code to provide clarity, flexibility, and modularity.T:enhancementType: Enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions