{"action":"created","issue":{"url":"https://api.github.com/repos/tencent-wechat/phxpaxos/issues/22","repository_url":"https://api.github.com/repos/tencent-wechat/phxpaxos","labels_url":"https://api.github.com/repos/tencent-wechat/phxpaxos/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/tencent-wechat/phxpaxos/issues/22/comments","events_url":"https://api.github.com/repos/tencent-wechat/phxpaxos/issues/22/events","html_url":"https://github.com/tencent-wechat/phxpaxos/issues/22","id":184741842,"number":22,"title":"Learner运行的时候直接exit了。我看了一下代码，请教一下exit了下一步怎么办呢？重启么？","user":{"login":"weylan","id":7578784,"avatar_url":"https://avatars.githubusercontent.com/u/7578784?v=3","gravatar_id":"","url":"https://api.github.com/users/weylan","html_url":"https://github.com/weylan","followers_url":"https://api.github.com/users/weylan/followers","following_url":"https://api.github.com/users/weylan/following{/other_user}","gists_url":"https://api.github.com/users/weylan/gists{/gist_id}","starred_url":"https://api.github.com/users/weylan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weylan/subscriptions","organizations_url":"https://api.github.com/users/weylan/orgs","repos_url":"https://api.github.com/users/weylan/repos","events_url":"https://api.github.com/users/weylan/events{/privacy}","received_events_url":"https://api.github.com/users/weylan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2016-10-24T03:31:42Z","updated_at":"2016-10-25T06:06:18Z","closed_at":null,"body":"int Learner :: OnSendCheckpoint_End(const CheckpointMsg & oCheckpointMsg)\r\n{\r\n    //.......\r\n    BP->GetCheckpointBP()->ReceiveCheckpointAndLoadSucc();\r\n    PLGImp(\"All sm load state ok, start to exit process\");\r\n    exit(-1);\r\n     return 0;\r\n}\r\n\r\n这个地方直接exit 进程了。成功之后难道不是应该恢复sm么？为什么直接退出进程而非线程。\r\n我发现重启可以恢复，但是为什么一定要重启呢？是不是有更优雅的办法？"},"comment":{"url":"https://api.github.com/repos/tencent-wechat/phxpaxos/issues/comments/255944911","html_url":"https://github.com/tencent-wechat/phxpaxos/issues/22#issuecomment-255944911","issue_url":"https://api.github.com/repos/tencent-wechat/phxpaxos/issues/22","id":255944911,"user":{"login":"weylan","id":7578784,"avatar_url":"https://avatars.githubusercontent.com/u/7578784?v=3","gravatar_id":"","url":"https://api.github.com/users/weylan","html_url":"https://github.com/weylan","followers_url":"https://api.github.com/users/weylan/followers","following_url":"https://api.github.com/users/weylan/following{/other_user}","gists_url":"https://api.github.com/users/weylan/gists{/gist_id}","starred_url":"https://api.github.com/users/weylan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weylan/subscriptions","organizations_url":"https://api.github.com/users/weylan/orgs","repos_url":"https://api.github.com/users/weylan/repos","events_url":"https://api.github.com/users/weylan/events{/privacy}","received_events_url":"https://api.github.com/users/weylan/received_events","type":"User","site_admin":false},"created_at":"2016-10-25T06:06:18Z","updated_at":"2016-10-25T06:06:18Z","body":"好的，确实是，如果是空数据返回了1，如果是超出范围的返回了-2，我修改一下。"}}
{"actor":{"display_login":"weylan"}}