atom-community / atom-community/atom-script

Termination of infinite-loop process still runs in the background

Open
#1,378 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.