{"action":"opened","issue":{"url":"https://api.github.com/repos/rgbkrk/atom-script/issues/690","labels_url":"https://api.github.com/repos/rgbkrk/atom-script/issues/690/labels{/name}","comments_url":"https://api.github.com/repos/rgbkrk/atom-script/issues/690/comments","events_url":"https://api.github.com/repos/rgbkrk/atom-script/issues/690/events","html_url":"https://github.com/rgbkrk/atom-script/issues/690","id":121971873,"number":690,"title":"Quitting Atom while an infinite script is running (using C) leaves the script running until it is manually killed.","user":{"login":"nihalgonsalves","id":10807310,"avatar_url":"https://avatars.githubusercontent.com/u/10807310?v=3","gravatar_id":"","url":"https://api.github.com/users/nihalgonsalves","html_url":"https://github.com/nihalgonsalves","followers_url":"https://api.github.com/users/nihalgonsalves/followers","following_url":"https://api.github.com/users/nihalgonsalves/following{/other_user}","gists_url":"https://api.github.com/users/nihalgonsalves/gists{/gist_id}","starred_url":"https://api.github.com/users/nihalgonsalves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nihalgonsalves/subscriptions","organizations_url":"https://api.github.com/users/nihalgonsalves/orgs","repos_url":"https://api.github.com/users/nihalgonsalves/repos","events_url":"https://api.github.com/users/nihalgonsalves/events{/privacy}","received_events_url":"https://api.github.com/users/nihalgonsalves/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-14T04:13:41Z","updated_at":"2015-12-14T04:13:41Z","closed_at":null,"body":"For example, if I write this script\r\n\r\n```c\r\n#include <stdio.h>\r\nint main(){\r\n  while(1)\r\n    printf(\"Hi\");\r\n}\r\n```\r\n\r\nand then run it using atom-script (⌘I), Activity Monitor shows 100% activity for Atom Helper (one full core). \r\n\r\n<img width=\"582\" alt=\"screenshot_1\" src=\"https://cloud.githubusercontent.com/assets/10807310/11772787/06c534de-a247-11e5-9425-47e83ed4606f.png\">\r\n\r\nIf 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`\r\n\r\n<img width=\"621\" alt=\"screenshot_2\" src=\"https://cloud.githubusercontent.com/assets/10807310/11772790/13d9ca4a-a247-11e5-8e22-d47ab6061d89.png\">\r\n\r\n(This issue is probably related to https://github.com/rgbkrk/atom-script/issues/453 )"}}