Ctrl-c stops working in cygwin

Ctrl-c (SIGINT / SIGTERM) stops working in cygwin. If I remember, this may have something to do with the TTY settings. Please advise how to make it work again. I didn’t change anything intentionally

Exiting stty -a:

$ stty -a speed 38400 baud; rows 25; columns 80; line = 0; intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 = <undef>; swtch = ^Z; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0; -parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts -ignbrk brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff -iuclc -ixany -imaxbel opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0 isig icanon iexten echo -echoe -echok -echonl -noflsh -tostop -echoctl -echoke 

When ctrl-c is pressed, the cmd window title changes to ~ from Select ~. Ctrl-c also interrupts program execution, but does not create a new line.

I also run ssh-agent sessions

I think this can be fixed with a reboot of the computer, but let me know if you have any ideas.

+6
source share
2 answers

I found this question when I wanted to close the Java process running in a Cygwin session, and Ctrl + C did not work for me. Then I realized that I could just kill the process from another Cygwin session, that is, in a new session:

 ps - ef | grep java kill -9 <pid> 
+1
source

Reinstalled Cygwin, and now it works.

0
source

Source: https://habr.com/ru/post/913302/


All Articles