Skip to content

Howto trap exit signal to cleanup #60

@brikou

Description

@brikou

Is there a way to trap signal on reloading in order to do some cleanup?

It seems that micro-dev does not trigger usr signal and so I cannot do trap.

see https://stackoverflow.com/questions/14031763/doing-a-cleanup-action-just-before-node-js-exits (which does not work)

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