{"action":"created","issue":{"url":"https://api.github.com/repos/ddeboer/data-import/issues/177","labels_url":"https://api.github.com/repos/ddeboer/data-import/issues/177/labels{/name}","comments_url":"https://api.github.com/repos/ddeboer/data-import/issues/177/comments","events_url":"https://api.github.com/repos/ddeboer/data-import/issues/177/events","html_url":"https://github.com/ddeboer/data-import/pull/177","id":64392861,"number":177,"title":"Proper reaction for SIGTERM and SIGINT","user":{"login":"igormukhingmailcom","id":6544038,"avatar_url":"https://avatars.githubusercontent.com/u/6544038?v=3","gravatar_id":"","url":"https://api.github.com/users/igormukhingmailcom","html_url":"https://github.com/igormukhingmailcom","followers_url":"https://api.github.com/users/igormukhingmailcom/followers","following_url":"https://api.github.com/users/igormukhingmailcom/following{/other_user}","gists_url":"https://api.github.com/users/igormukhingmailcom/gists{/gist_id}","starred_url":"https://api.github.com/users/igormukhingmailcom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igormukhingmailcom/subscriptions","organizations_url":"https://api.github.com/users/igormukhingmailcom/orgs","repos_url":"https://api.github.com/users/igormukhingmailcom/repos","events_url":"https://api.github.com/users/igormukhingmailcom/events{/privacy}","received_events_url":"https://api.github.com/users/igormukhingmailcom/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-03-25T23:04:48Z","updated_at":"2015-05-09T18:13:23Z","closed_at":"2015-05-04T08:28:17Z","pull_request":{"url":"https://api.github.com/repos/ddeboer/data-import/pulls/177","html_url":"https://github.com/ddeboer/data-import/pull/177","diff_url":"https://github.com/ddeboer/data-import/pull/177.diff","patch_url":"https://github.com/ddeboer/data-import/pull/177.patch"},"body":"That at this time compatible with PHP 5.3 and graceful degradation for running on Windows"},"comment":{"url":"https://api.github.com/repos/ddeboer/data-import/issues/comments/100525919","html_url":"https://github.com/ddeboer/data-import/pull/177#issuecomment-100525919","issue_url":"https://api.github.com/repos/ddeboer/data-import/issues/177","id":100525919,"user":{"login":"sagikazarmark","id":1226384,"avatar_url":"https://avatars.githubusercontent.com/u/1226384?v=3","gravatar_id":"","url":"https://api.github.com/users/sagikazarmark","html_url":"https://github.com/sagikazarmark","followers_url":"https://api.github.com/users/sagikazarmark/followers","following_url":"https://api.github.com/users/sagikazarmark/following{/other_user}","gists_url":"https://api.github.com/users/sagikazarmark/gists{/gist_id}","starred_url":"https://api.github.com/users/sagikazarmark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sagikazarmark/subscriptions","organizations_url":"https://api.github.com/users/sagikazarmark/orgs","repos_url":"https://api.github.com/users/sagikazarmark/repos","events_url":"https://api.github.com/users/sagikazarmark/events{/privacy}","received_events_url":"https://api.github.com/users/sagikazarmark/received_events","type":"User","site_admin":false},"created_at":"2015-05-09T18:13:23Z","updated_at":"2015-05-09T18:13:23Z","body":"I see. My other problem is that the PCNTL extension availability is checked through `is_callables` which is called in every cycle of the loop.\r\n\r\nI would add a constant instead:\r\n\r\n`defined('PCNTL_AVAILABLE') or define('PCNTL_AVAILABLE', extension_loaded('pcntl'));`\r\n\r\nand check this instead. It is way much faster."}}