Skip to content

Register autofile signal listeners explicitly rather than in init() #2260

@silasdavis

Description

@silasdavis

Recent change to:

https://github.com/tendermint/tendermint/blob/master/libs/autofile/sighup_watcher.go#L19-L25

To capture interrupt signal (and so disable default golang runtime behaviour) stop unrelated things we have in our binary from exiting on Ctrl-C (e.g. grpcServer.Serve). It would be better hygiene if NewNode could activate these explicitly rather than doing it globally like this in init.

Metadata

Metadata

Assignees

Labels

C:libsComponent: LibraryT:bugType Bug (Confirmed)

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions