Skip to content

Receive pid that signal was sent from #4075

@mehulkar

Description

@mehulkar

Details

In the code:

process.on('SIGUSR1', () => {})

I would like to receive information about where the signal came from. Currently, the callback only receives the string SIGUSR1 and an int 30. How do I do this?

Node.js version

Not applicable.

Example code

No response

Operating system

macOS

Scope

signal handling

Module and version

Not applicable.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions