atom-community / atom-community/atom-script

Quitting Atom while an infinite script is running (using C) leaves the script running until it is manually killed.

Open
#690 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
730
Forks
264
PR merge metrics
No merged PRs in 30d

Description

For example, if I write this script

``` c
#include
int main(){
while(1)
printf("Hi");
}
```

and then run it using atom-script (⌘I), Activity Monitor shows 100% activity for Atom Helper (one full core).

screenshot_1

If I then quit Atom (⌘Q), the parent process `Atom Helper` quits and is replaced in Activity Monitor by `c.out` (stored in /tmp/c.out) which runs forever, using up a full core and battery life until it is killed manually in Activity Monitor or with `kill`

screenshot_2

(This issue is probably related to https://github.com/rgbkrk/atom-script/issues/453 )

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.