Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How send SIGUSR1 signal with a keyboard shortcut?

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

like image 965
galkin Avatar asked Jun 26 '17 09:06

galkin


People also ask

How do I send a Sigterm keyboard?

I know that inside a terminal, Ctrl + C keyboard shortcut will send a SIGINT signal to the current foreground process.

What is SIGUSR1 in Linux?

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.


1 Answers

Quite old, but for anyone who is looking for answer: SIGUSR (BSD SIGINFO) - ^T (Control and T simultaneously)

like image 57
BbIKTOP Avatar answered Oct 01 '22 09:10

BbIKTOP