Skip to content

Allow to register exit handlers #229

@lstocchi

Description

@lstocchi

In the current code base we already handle the interrupt signals in the virtionet.go file. However we could need to listen to them in other parts of the code (e.g in the ignition part to delete the socket created)

func registerExitHandler(handler func()) {

We should centralize it so that it is possible to register multiple exit handlers that will be executed in one place.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions