My C program is reading a line from standard input using libreadline. I have only one terminal. How do I kill my program using SIGQUIT? Pressing ctrl+\ is not working.
I have tried pressing ctrl+, ctrl+++. ctrl+backspace etc.
My C program is reading a line from standard input using libreadline. I have only one terminal. How do I kill my program using SIGQUIT? Pressing ctrl+\ is not working.
I have tried pressing ctrl+, ctrl+++. ctrl+backspace etc.
Copyright © 2021 Jogjafile Inc.
you can try to send a SIGQUIT signal to your C program that is reading input from the terminal using readline. Open another terminal/shell instance - Then you can send the kill command from there without interrupting readline input:
or try
Ctrl + cto kill the program