Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BR] Crtl-C for Sigint not working #111

Open
2 tasks
JulienGAMartin opened this issue May 25, 2020 · 2 comments
Open
2 tasks

[BR] Crtl-C for Sigint not working #111

JulienGAMartin opened this issue May 25, 2020 · 2 comments
Labels
bug report 🐛 Something isn't working

Comments

@JulienGAMartin
Copy link

  • [ x] I have reset Atom to defaults prior to submitting report.
  • I have not reset Atom to defaults prior to submitting report.
  • [ x] I have tried uninstalling/reinstalling the terminal.
  • I have not tried uninstalling/reinstalling the terminal.

Description

trying to kill a process in the terminal using keyboard shorcut Crtl-C in linux. It is simply not working and nothing is happening.
When I run a long process in termination and I want to kill it using sigint (crtl-c) nothing happen

Steps to reproduce

  1. Start a process in termination
  2. press crtl-c to interrupt it

Expected behavior:

The process should end

Actual behavior:

Nothing happen

Reproduces how often:

100% of times

Versions

> atom --version
Atom    : 1.47.0
Electron: 5.0.13
Chrome  : 73.0.3683.121
Node    : 12.0.0

> apm --version
apm  2.4.5
npm  6.2.0
node 10.2.1 x64
atom 1.47.0
python 3.8.2
git 2.25.1

OS name and version: Ubuntu 20.04
Terminal version:
termination 0.7.6

@JulienGAMartin JulienGAMartin added the bug report 🐛 Something isn't working label May 25, 2020
@Fred-Barclay
Copy link
Collaborator

Hi @JulienGAMartin
Thanks for the report! This one's a bit weird, I can see it on my Debian 10 machine but also Atom 1.47.0 is plagued on debian-based systems by atom/atom#20756

Would you be willing to downgrade to Atom 1.46.0 and see if the problem persists there? It seems to be working fine for me on this version so not sure if the issue is with us or Atom yet.
If so, please remove termination first or else you'll have to rebuild it and the same issue will be there until you restart Atom.

apm uninstall termination

Then once you've downgraded to Atom 1.46.0, re-install termination through Atom or with

apm install termination

Cheers!
Fred

@JulienGAMartin
Copy link
Author

JulienGAMartin commented May 27, 2020

Hi
so I have done a few more test. crtl-c is working to stop a running process that is waiting or running in the background apparently. So for example this short python infinite loop can be stopped using crtl-c

var = 1
while var == 1 :  # This constructs an infinite loop
  num = int(input("Enter a number  :"))
  print ("You entered: ", num)

However, if the process is printing then crtl-c is not working. This happenend in both 1.46 and 1.47
Here is a python example using an infinite loop again. The only way to stop it is to close the terminal

a = 1
var = 1
while var == 1 :  # This constructs an infinite loop
   print ("You entered: ", a)
   a = a + 1

Same happen if I use R in termination any R process that is printing cannot be stopped with crtl-c.
Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report 🐛 Something isn't working
Development

No branches or pull requests

2 participants