{"action":"opened","issue":{"url":"https://api.github.com/repos/iqiyi/xHook/issues/10","repository_url":"https://api.github.com/repos/iqiyi/xHook","labels_url":"https://api.github.com/repos/iqiyi/xHook/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/iqiyi/xHook/issues/10/comments","events_url":"https://api.github.com/repos/iqiyi/xHook/issues/10/events","html_url":"https://github.com/iqiyi/xHook/issues/10","id":328707995,"node_id":"MDU6SXNzdWUzMjg3MDc5OTU=","number":10,"title":"I can hook libc.so can't work","user":{"login":"muyi126","id":8042711,"node_id":"MDQ6VXNlcjgwNDI3MTE=","avatar_url":"https://avatars0.githubusercontent.com/u/8042711?v=4","gravatar_id":"","url":"https://api.github.com/users/muyi126","html_url":"https://github.com/muyi126","followers_url":"https://api.github.com/users/muyi126/followers","following_url":"https://api.github.com/users/muyi126/following{/other_user}","gists_url":"https://api.github.com/users/muyi126/gists{/gist_id}","starred_url":"https://api.github.com/users/muyi126/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muyi126/subscriptions","organizations_url":"https://api.github.com/users/muyi126/orgs","repos_url":"https://api.github.com/users/muyi126/repos","events_url":"https://api.github.com/users/muyi126/events{/privacy}","received_events_url":"https://api.github.com/users/muyi126/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-02T03:10:32Z","updated_at":"2018-06-02T03:10:32Z","closed_at":null,"author_association":"NONE","body":",I want hook \"open\" and close but  \"open \" can't work,\"close\" loop  execution\r\n\r\npublic void copyFile(String oldPath, String newPath) {\r\n        try {\r\n            int bytesum = 0;\r\n            int byteread = 0;\r\n            File oldfile = new File(oldPath);\r\n            if (oldfile.exists()) { \r\n                InputStream inStream = new FileInputStream(oldPath); \r\n                FileOutputStream fs = new FileOutputStream(newPath);\r\n                byte[] buffer = new byte[1444];\r\n                int length;\r\n                while ( (byteread = inStream.read(buffer)) != -1) {\r\n                    bytesum += byteread;\r\n                    fs.write(buffer, 0, byteread);\r\n\r\n                }\r\n                inStream.close();\r\n            }\r\n        }\r\n        catch (Exception e) {\r\n            e.printStackTrace();\r\n\r\n        }\r\n\r\n    }"}}
{"actor":{"display_login":"muyi126"}}