{"action":"created","issue":{"url":"https://api.github.com/repos/sdogruyol/kemal/issues/182","repository_url":"https://api.github.com/repos/sdogruyol/kemal","labels_url":"https://api.github.com/repos/sdogruyol/kemal/issues/182/labels{/name}","comments_url":"https://api.github.com/repos/sdogruyol/kemal/issues/182/comments","events_url":"https://api.github.com/repos/sdogruyol/kemal/issues/182/events","html_url":"https://github.com/sdogruyol/kemal/issues/182","id":168161411,"number":182,"title":"Multiple tmp files of the same name","user":{"login":"jwoertink","id":2391,"avatar_url":"https://avatars.githubusercontent.com/u/2391?v=3","gravatar_id":"","url":"https://api.github.com/users/jwoertink","html_url":"https://github.com/jwoertink","followers_url":"https://api.github.com/users/jwoertink/followers","following_url":"https://api.github.com/users/jwoertink/following{/other_user}","gists_url":"https://api.github.com/users/jwoertink/gists{/gist_id}","starred_url":"https://api.github.com/users/jwoertink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwoertink/subscriptions","organizations_url":"https://api.github.com/users/jwoertink/orgs","repos_url":"https://api.github.com/users/jwoertink/repos","events_url":"https://api.github.com/users/jwoertink/events{/privacy}","received_events_url":"https://api.github.com/users/jwoertink/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-07-28T18:14:33Z","updated_at":"2016-07-28T18:39:17Z","closed_at":null,"body":"I'm not sure if this is Kemal that does this directly, or if it's actually in the crystal lang, but when you boot a kemal app locally, you get a tmp file.\r\n\r\n```crystal\r\n#app1/app.cr\r\nrequire \"kemal\"\r\nget(\"/\") { \"app 1\" }\r\nKemal.config.port = 3001\r\nKemal.run\r\n```\r\nFrom this app, you'll get a tmp file at `~/.cache/crystal/crystal-run-app.tmp`\r\n\r\n```text\r\n$ ps aux | grep crystal\r\njeremywoertink  30540   0.0  0.0  2434840    796 s004  S+   11:12AM   0:00.00 grep crystal\r\njeremywoertink  29839   0.0  0.0  2485556   2212 s004  S    10:50AM   0:00.02 /Users/jeremywoertink/.cache/crystal/crystal-run-app.tmp\r\njeremywoertink  29458   0.0  1.0  2691440 175544 s004  S    10:50AM   0:01.71 crystal app.cr\r\n```\r\n\r\nBooting a second one where the main file is the same name will result in 2 processes of the same name, but only 1 temp file. Somehow, they both still seem to run and respond.\r\n\r\n```crystal\r\n#app2/app.cr\r\nrequire \"kemal\"\r\nget(\"/\") { \"app 2\" }\r\nKemal.config.port = 3002\r\nKemal.run\r\n```\r\n\r\n```text\r\n$ ps aux | grep crystal\r\njeremywoertink  30540   0.0  0.0  2434840    796 s004  S+   11:12AM   0:00.00 grep crystal\r\njeremywoertink  29839   0.0  0.0  2485556   2212 s004  S    10:50AM   0:00.02 /Users/jeremywoertink/.cache/crystal/crystal-run-app.tmp\r\njeremywoertink  29840   0.0  0.0  2485557   2212 s004  S    10:50AM   0:00.02 /Users/jeremywoertink/.cache/crystal/crystal-run-app.tmp\r\njeremywoertink  29458   0.0  1.0  2691440 175544 s004  S    10:50AM   0:01.71 crystal app.cr\r\n```\r\nNotice here that there are 2 processes with the same name, but if you look in the `~/.cache/crystal/` folder, there's only 1 `crystal-run-app.tmp` file."},"comment":{"url":"https://api.github.com/repos/sdogruyol/kemal/issues/comments/235986260","html_url":"https://github.com/sdogruyol/kemal/issues/182#issuecomment-235986260","issue_url":"https://api.github.com/repos/sdogruyol/kemal/issues/182","id":235986260,"user":{"login":"sdogruyol","id":990485,"avatar_url":"https://avatars.githubusercontent.com/u/990485?v=3","gravatar_id":"","url":"https://api.github.com/users/sdogruyol","html_url":"https://github.com/sdogruyol","followers_url":"https://api.github.com/users/sdogruyol/followers","following_url":"https://api.github.com/users/sdogruyol/following{/other_user}","gists_url":"https://api.github.com/users/sdogruyol/gists{/gist_id}","starred_url":"https://api.github.com/users/sdogruyol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdogruyol/subscriptions","organizations_url":"https://api.github.com/users/sdogruyol/orgs","repos_url":"https://api.github.com/users/sdogruyol/repos","events_url":"https://api.github.com/users/sdogruyol/events{/privacy}","received_events_url":"https://api.github.com/users/sdogruyol/received_events","type":"User","site_admin":false},"created_at":"2016-07-28T18:39:17Z","updated_at":"2016-07-28T18:39:17Z","body":"Why don't you use the QUIT signal `CTRL-C`?"}}
{"actor":{"display_login":"sdogruyol"}}