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
- 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).

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`

(This issue is probably related to https://github.com/rgbkrk/atom-script/issues/453 )
Contributor guide
Assessment
This issue has not been assessed yet.