Skip to content

Support printing backtrace also on SIGTERM #56879

@orgads

Description

@orgads

What is the problem this feature will solve?

PR #29207 added support for --trace-sigint. A similar feature can be very useful for SIGTERM as well. When running on k8s, if liveness probe doesn't respond, the pod is terminated using SIGTERM. It can be very useful to have a trace in case the application is stuck in an infinite loop.

What is the feature you are proposing to solve the problem?

Add --trace-sigterm to print a trace on SIGTERM.

What alternatives have you considered?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues that request new features to be added to Node.js.

    Type

    No type

    Projects

    Status

    Awaiting Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions