{"action":"closed","issue":{"url":"https://api.github.com/repos/bcit-ci/CodeIgniter/issues/4121","labels_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/issues/4121/labels{/name}","comments_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/issues/4121/comments","events_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/issues/4121/events","html_url":"https://github.com/bcit-ci/CodeIgniter/issues/4121","id":106925913,"number":4121,"title":"DB class trouble with pcntl","user":{"login":"beg163","id":3378978,"avatar_url":"https://avatars.githubusercontent.com/u/3378978?v=3","gravatar_id":"","url":"https://api.github.com/users/beg163","html_url":"https://github.com/beg163","followers_url":"https://api.github.com/users/beg163/followers","following_url":"https://api.github.com/users/beg163/following{/other_user}","gists_url":"https://api.github.com/users/beg163/gists{/gist_id}","starred_url":"https://api.github.com/users/beg163/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beg163/subscriptions","organizations_url":"https://api.github.com/users/beg163/orgs","repos_url":"https://api.github.com/users/beg163/repos","events_url":"https://api.github.com/users/beg163/events{/privacy}","received_events_url":"https://api.github.com/users/beg163/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-17T07:23:01Z","updated_at":"2015-09-17T07:23:52Z","closed_at":"2015-09-17T07:23:52Z","body":"hello, when I use DB class after pcntl_fork, there will be a Error: \"2006 mysql server has gone away\". Only the first sql can be executed successly. I think CI will close all mysql connections after execute any one sql. I tried \"$this->db->db_connect();$this->db->query();$this->db->close();\" and \"$this->db->reconnect()\", but both didn't work. At last ,I have to new Mysqli to finish it . So ,how to write this code in CI's case? thank you."}}