{"action":"created","issue":{"url":"https://api.github.com/repos/davidmarkclements/0x/issues/3","repository_url":"https://api.github.com/repos/davidmarkclements/0x","labels_url":"https://api.github.com/repos/davidmarkclements/0x/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/davidmarkclements/0x/issues/3/comments","events_url":"https://api.github.com/repos/davidmarkclements/0x/issues/3/events","html_url":"https://github.com/davidmarkclements/0x/issues/3","id":139830846,"number":3,"title":"Error: Unknown signal: 143","user":{"login":"alessioalex","id":332898,"avatar_url":"https://avatars.githubusercontent.com/u/332898?v=3","gravatar_id":"","url":"https://api.github.com/users/alessioalex","html_url":"https://github.com/alessioalex","followers_url":"https://api.github.com/users/alessioalex/followers","following_url":"https://api.github.com/users/alessioalex/following{/other_user}","gists_url":"https://api.github.com/users/alessioalex/gists{/gist_id}","starred_url":"https://api.github.com/users/alessioalex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alessioalex/subscriptions","organizations_url":"https://api.github.com/users/alessioalex/orgs","repos_url":"https://api.github.com/users/alessioalex/repos","events_url":"https://api.github.com/users/alessioalex/events{/privacy}","received_events_url":"https://api.github.com/users/alessioalex/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-03-10T09:21:55Z","updated_at":"2016-03-10T12:09:26Z","closed_at":null,"body":"Hey there!\r\n\r\nGo this error:\r\n\r\n```bash\r\n→ ./cmd.js examples/rest-api/index.js \r\nCaught SIGINT, generating flamegraph /home/alessio/www/test/0x/index.js:188\r\n      throw e\r\n      ^\r\n\r\nError: Unknown signal: 143\r\n    at process.ChildProcess.kill (internal/child_process.js:361:11)\r\n    at emitOne (events.js:83:20)\r\n    at process.emit (events.js:170:7)\r\n    at process.exit (node.js:763:17)\r\n    at ChildProcess.<anonymous> (/home/alessio/www/test/0x/index.js:169:15)\r\n    at emitTwo (events.js:88:13)\r\n    at ChildProcess.emit (events.js:173:7)\r\n    at Process.ChildProcess._handle.onexit (internal/child_process.js:201:12)\r\n```\r\n\r\nSo [`143` corresponds to `SIGTERM`](http://stackoverflow.com/questions/4192364/always-app-java-end-with-exit-143-ubuntu), which is sent upon killing the process. So doesn't that mean that [this line](https://github.com/davidmarkclements/0x/blob/master/index.js#L167) should check for codes `0` as well as `143`? If done so, everything works fine on my system. The generated flamegraph is totally fine."},"comment":{"url":"https://api.github.com/repos/davidmarkclements/0x/issues/comments/194814779","html_url":"https://github.com/davidmarkclements/0x/issues/3#issuecomment-194814779","issue_url":"https://api.github.com/repos/davidmarkclements/0x/issues/3","id":194814779,"user":{"login":"alessioalex","id":332898,"avatar_url":"https://avatars.githubusercontent.com/u/332898?v=3","gravatar_id":"","url":"https://api.github.com/users/alessioalex","html_url":"https://github.com/alessioalex","followers_url":"https://api.github.com/users/alessioalex/followers","following_url":"https://api.github.com/users/alessioalex/following{/other_user}","gists_url":"https://api.github.com/users/alessioalex/gists{/gist_id}","starred_url":"https://api.github.com/users/alessioalex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alessioalex/subscriptions","organizations_url":"https://api.github.com/users/alessioalex/orgs","repos_url":"https://api.github.com/users/alessioalex/repos","events_url":"https://api.github.com/users/alessioalex/events{/privacy}","received_events_url":"https://api.github.com/users/alessioalex/received_events","type":"User","site_admin":false},"created_at":"2016-03-10T12:09:26Z","updated_at":"2016-03-10T12:09:26Z","body":"I've made a pull request that applies a bandaid (checks for code 143) until we can close this as you've stated. I might have an idea on how to fix it like you said though, will do some testing now."}}