Author Topic: Linux terminal is not responding to any keyboard signal - [SOLVED]  (Read 143 times)

0 Members and 1 Guest are viewing this topic.

Offline cloudytech147

  • Jr. Member
  • **
  • Posts: 1
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
After my python flask app crushed without exiting, I tried using ctrl-C to stop it, instead of exiting the app I got ^C and for any other signal I tried via my keyboard as well, only control characters, as can be seen below:



To stop the process I had to open the best Linux terminal and send a kill signal from there.

This wasn't the first time I encounter this, What is causing this?

Is there a way to kill the process from within?



« Last Edit: November 15, 2021, 05:03:34 am by cloudytech147 »

Offline Keith

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1523
  • Karma: 20
  • Gender: Male
  • Linux Novice
    • View Profile
    • Awards
Re: Linux terminal is not responding to any keyboard signal
« Reply #1 on: November 08, 2021, 10:00:12 am »
Hi Cloudytech - and welcome to the Forum. 

Please read this link: https://linuxforums.org.uk/index.php?board=209.0 which will advise you how to submit posts. 
Without knowing anything about your computer and OS, we can't really advise you. 

Keith

The Linux Community Forum

Re: Linux terminal is not responding to any keyboard signal
« Reply #1 on: November 08, 2021, 10:00:12 am »

Offline DavidMcCann

  • Jr. Member
  • **
  • Posts: 79
  • Karma: 5
  • I've just joined!
    • View Profile
    • Awards
Re: Linux terminal is not responding to any keyboard signal
« Reply #2 on: November 09, 2021, 04:47:25 pm »
There's nothing wrong with the computer or the keyboard — the problem is just that the Python program is written in such a way that ^C is trapped. The only solution is to suspend it with ^Z and manually kill it, as explained here:
https://codeigo.com/python/terminating-a-python-script

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal