I want to send SIGUSR1 signal to my node.js application for debugging via terminal. I know command kill -SIGUSR1 <pid>
How can I setup keyboard shortcut for this? If it matters, I use MacOs
I know that inside a terminal, Ctrl + C keyboard shortcut will send a SIGINT signal to the current foreground process.
The SIGUSR1 and SIGUSR2 signals are set aside for you to use any way you want. They're useful for simple interprocess communication, if you write a signal handler for them in the program that receives the signal. There is an example showing the use of SIGUSR1 and SIGUSR2 in Signaling Another Process.
Quite old, but for anyone who is looking for answer: SIGUSR (BSD SIGINFO) - ^T (Control and T simultaneously)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With