atom-community / atom-community/atom-script
Termination of infinite-loop process still runs in the background
- Dominant language
- JavaScript
- Stars
- 730
- Forks
- 264
- PR merge metrics
- No merged PRs in 30d
Description
I have seem to notice upon killing a script due to an infinite loop via ctrl-c in the pane, the process itself continues to run in the background eating up CPU.
Platform: MacOS Sierra 10.12.5
Atom Version: 1.18.0
script Version: 3.15.0
Grammar: C++ 14
Reproduction steps:
- Launch Atom and create or open an existing cpp file.
- Write a piece of code that has an infinite loop with I/O e.g. cout
`while(true){
std::cout<<"Hello, World"< CPU, you might notice that a process called `cpp.out` that takes the major of the CPU. Only killing within Activity Monitor frees up the CPU. It should also be noted that even quitting Atom doesn't result in the infinite-loop process to be killed.
Contributor guide
Assessment
This issue has not been assessed yet.