{"action":"created","issue":{"url":"https://api.github.com/repos/swoft-cloud/swoft/issues/405","repository_url":"https://api.github.com/repos/swoft-cloud/swoft","labels_url":"https://api.github.com/repos/swoft-cloud/swoft/issues/405/labels{/name}","comments_url":"https://api.github.com/repos/swoft-cloud/swoft/issues/405/comments","events_url":"https://api.github.com/repos/swoft-cloud/swoft/issues/405/events","html_url":"https://github.com/swoft-cloud/swoft/issues/405","id":368096227,"node_id":"MDU6SXNzdWUzNjgwOTYyMjc=","number":405,"title":"自定义进程启动多个进程，restart服务只会关闭一个进程","user":{"login":"hidahua","id":4996147,"node_id":"MDQ6VXNlcjQ5OTYxNDc=","avatar_url":"https://avatars1.githubusercontent.com/u/4996147?v=4","gravatar_id":"","url":"https://api.github.com/users/hidahua","html_url":"https://github.com/hidahua","followers_url":"https://api.github.com/users/hidahua/followers","following_url":"https://api.github.com/users/hidahua/following{/other_user}","gists_url":"https://api.github.com/users/hidahua/gists{/gist_id}","starred_url":"https://api.github.com/users/hidahua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hidahua/subscriptions","organizations_url":"https://api.github.com/users/hidahua/orgs","repos_url":"https://api.github.com/users/hidahua/repos","events_url":"https://api.github.com/users/hidahua/events{/privacy}","received_events_url":"https://api.github.com/users/hidahua/received_events","type":"User","site_admin":false},"labels":[{"id":589924920,"node_id":"MDU6TGFiZWw1ODk5MjQ5MjA=","url":"https://api.github.com/repos/swoft-cloud/swoft/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-09T08:30:28Z","updated_at":"2018-11-12T12:39:40Z","closed_at":null,"author_association":"NONE","body":"\r\n**Details**\r\n\r\n> Describe what you are trying to achieve and what goes wrong.\r\n\r\n```php\r\nnamespace App\\Boot;\r\n\r\nuse Swoft\\App;\r\nuse Swoft\\Process\\Bean\\Annotation\\Process;\r\nuse Swoft\\Process\\Process as SwoftProcess;\r\nuse Swoft\\Process\\ProcessBuilder;\r\nuse Swoft\\Process\\ProcessInterface;\r\nuse Swoft\\Task\\Task;\r\nuse App\\Services\\Mq;\r\n\r\n/**\r\n * Pushmsg\r\n *\r\n * @Process(boot=true,num=3,name=\"pushmsg\")\r\n */\r\nclass PushMsg implements ProcessInterface\r\n{\r\n    public function run(SwoftProcess $process)\r\n    {\r\n        $pname = App::$server->getPname();\r\n        $processName    = \"$pname pushmsg\";\r\n        $process->name($processName);\r\n        \r\n        $taskConfig     = \\Swoft::getProperties()['pushmsg'];\r\n        $taskQueue      = $taskConfig['queue_name'];\r\n        $taskBegTime    = time();\r\n        \r\n        echo time() . \" fetchPushMsgProcess BEG \\n\";\r\n        echo \"$processName \\n\";\r\n        \r\n        App::profileStart(\"pushmsg\");\r\n        App::info(\"$processName process\");\r\n        \r\n        $msgSer = Mq::getInstance();\r\n        \r\n        while (1) {\r\n        ……\r\n```\r\n\r\n启动之后：\r\n![image](https://user-images.githubusercontent.com/4996147/46656364-79b7c680-cbe0-11e8-8321-32e4bd52b3e9.png)\r\n\r\n关闭之后：\r\n![image](https://user-images.githubusercontent.com/4996147/46656410-92c07780-cbe0-11e8-9f8c-db9ff664694e.png)\r\n\r\n留下孤儿进程了！"},"comment":{"url":"https://api.github.com/repos/swoft-cloud/swoft/issues/comments/437864676","html_url":"https://github.com/swoft-cloud/swoft/issues/405#issuecomment-437864676","issue_url":"https://api.github.com/repos/swoft-cloud/swoft/issues/405","id":437864676,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNzg2NDY3Ng==","user":{"login":"touch888","id":20635217,"node_id":"MDQ6VXNlcjIwNjM1MjE3","avatar_url":"https://avatars1.githubusercontent.com/u/20635217?v=4","gravatar_id":"","url":"https://api.github.com/users/touch888","html_url":"https://github.com/touch888","followers_url":"https://api.github.com/users/touch888/followers","following_url":"https://api.github.com/users/touch888/following{/other_user}","gists_url":"https://api.github.com/users/touch888/gists{/gist_id}","starred_url":"https://api.github.com/users/touch888/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/touch888/subscriptions","organizations_url":"https://api.github.com/users/touch888/orgs","repos_url":"https://api.github.com/users/touch888/repos","events_url":"https://api.github.com/users/touch888/events{/privacy}","received_events_url":"https://api.github.com/users/touch888/received_events","type":"User","site_admin":false},"created_at":"2018-11-12T12:39:40Z","updated_at":"2018-11-12T12:39:40Z","author_association":"NONE","body":"这个是因为开启了协程引起的,同步的没有此问题,希望官方给个解决方案"}}
{"actor":{"display_login":"touch888"}}