{"action":"opened","number":3,"pull_request":{"url":"https://api.github.com/repos/jshy/Test-mongod/pulls/3","id":40315773,"html_url":"https://github.com/jshy/Test-mongod/pull/3","diff_url":"https://github.com/jshy/Test-mongod/pull/3.diff","patch_url":"https://github.com/jshy/Test-mongod/pull/3.patch","issue_url":"https://api.github.com/repos/jshy/Test-mongod/issues/3","number":3,"state":"open","locked":false,"title":"execute mongod directly instead of via shell","user":{"login":"trinitum","id":147218,"avatar_url":"https://avatars.githubusercontent.com/u/147218?v=3","gravatar_id":"","url":"https://api.github.com/users/trinitum","html_url":"https://github.com/trinitum","followers_url":"https://api.github.com/users/trinitum/followers","following_url":"https://api.github.com/users/trinitum/following{/other_user}","gists_url":"https://api.github.com/users/trinitum/gists{/gist_id}","starred_url":"https://api.github.com/users/trinitum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trinitum/subscriptions","organizations_url":"https://api.github.com/users/trinitum/orgs","repos_url":"https://api.github.com/users/trinitum/repos","events_url":"https://api.github.com/users/trinitum/events{/privacy}","received_events_url":"https://api.github.com/users/trinitum/received_events","type":"User","site_admin":false},"body":"When I tried to install Test::mongod test hanged. After investigating I found that test wasn't stopping mongo because of the way exec is used in the script.\r\nexec(\"mongod --dbpath...\") executes shell that forks and executes\r\nmongod in a child process. As a result $mongod->stop stops the shell\r\nprocess, but mongod continues running. List form of exec, executes\r\nmongod directly and so avoiding this problem. As a bonus it works when\r\npaths contain spaces.","created_at":"2015-07-19T21:53:39Z","updated_at":"2015-07-19T21:53:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jshy/Test-mongod/pulls/3/commits","review_comments_url":"https://api.github.com/repos/jshy/Test-mongod/pulls/3/comments","review_comment_url":"https://api.github.com/repos/jshy/Test-mongod/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jshy/Test-mongod/issues/3/comments","statuses_url":"https://api.github.com/repos/jshy/Test-mongod/statuses/890487bddc6171b72861883f338773a6d56e4a6d","head":{"label":"trinitum:fix-exec","ref":"fix-exec","sha":"890487bddc6171b72861883f338773a6d56e4a6d","user":{"login":"trinitum","id":147218,"avatar_url":"https://avatars.githubusercontent.com/u/147218?v=3","gravatar_id":"","url":"https://api.github.com/users/trinitum","html_url":"https://github.com/trinitum","followers_url":"https://api.github.com/users/trinitum/followers","following_url":"https://api.github.com/users/trinitum/following{/other_user}","gists_url":"https://api.github.com/users/trinitum/gists{/gist_id}","starred_url":"https://api.github.com/users/trinitum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trinitum/subscriptions","organizations_url":"https://api.github.com/users/trinitum/orgs","repos_url":"https://api.github.com/users/trinitum/repos","events_url":"https://api.github.com/users/trinitum/events{/privacy}","received_events_url":"https://api.github.com/users/trinitum/received_events","type":"User","site_admin":false},"repo":{"id":39349776,"name":"Test-mongod","full_name":"trinitum/Test-mongod","owner":{"login":"trinitum","id":147218,"avatar_url":"https://avatars.githubusercontent.com/u/147218?v=3","gravatar_id":"","url":"https://api.github.com/users/trinitum","html_url":"https://github.com/trinitum","followers_url":"https://api.github.com/users/trinitum/followers","following_url":"https://api.github.com/users/trinitum/following{/other_user}","gists_url":"https://api.github.com/users/trinitum/gists{/gist_id}","starred_url":"https://api.github.com/users/trinitum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trinitum/subscriptions","organizations_url":"https://api.github.com/users/trinitum/orgs","repos_url":"https://api.github.com/users/trinitum/repos","events_url":"https://api.github.com/users/trinitum/events{/privacy}","received_events_url":"https://api.github.com/users/trinitum/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/trinitum/Test-mongod","description":"Throw away instance of MongoDB","fork":true,"url":"https://api.github.com/repos/trinitum/Test-mongod","forks_url":"https://api.github.com/repos/trinitum/Test-mongod/forks","keys_url":"https://api.github.com/repos/trinitum/Test-mongod/keys{/key_id}","collaborators_url":"https://api.github.com/repos/trinitum/Test-mongod/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/trinitum/Test-mongod/teams","hooks_url":"https://api.github.com/repos/trinitum/Test-mongod/hooks","issue_events_url":"https://api.github.com/repos/trinitum/Test-mongod/issues/events{/number}","events_url":"https://api.github.com/repos/trinitum/Test-mongod/events","assignees_url":"https://api.github.com/repos/trinitum/Test-mongod/assignees{/user}","branches_url":"https://api.github.com/repos/trinitum/Test-mongod/branches{/branch}","tags_url":"https://api.github.com/repos/trinitum/Test-mongod/tags","blobs_url":"https://api.github.com/repos/trinitum/Test-mongod/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/trinitum/Test-mongod/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/trinitum/Test-mongod/git/refs{/sha}","trees_url":"https://api.github.com/repos/trinitum/Test-mongod/git/trees{/sha}","statuses_url":"https://api.github.com/repos/trinitum/Test-mongod/statuses/{sha}","languages_url":"https://api.github.com/repos/trinitum/Test-mongod/languages","stargazers_url":"https://api.github.com/repos/trinitum/Test-mongod/stargazers","contributors_url":"https://api.github.com/repos/trinitum/Test-mongod/contributors","subscribers_url":"https://api.github.com/repos/trinitum/Test-mongod/subscribers","subscription_url":"https://api.github.com/repos/trinitum/Test-mongod/subscription","commits_url":"https://api.github.com/repos/trinitum/Test-mongod/commits{/sha}","git_commits_url":"https://api.github.com/repos/trinitum/Test-mongod/git/commits{/sha}","comments_url":"https://api.github.com/repos/trinitum/Test-mongod/comments{/number}","issue_comment_url":"https://api.github.com/repos/trinitum/Test-mongod/issues/comments{/number}","contents_url":"https://api.github.com/repos/trinitum/Test-mongod/contents/{+path}","compare_url":"https://api.github.com/repos/trinitum/Test-mongod/compare/{base}...{head}","merges_url":"https://api.github.com/repos/trinitum/Test-mongod/merges","archive_url":"https://api.github.com/repos/trinitum/Test-mongod/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/trinitum/Test-mongod/downloads","issues_url":"https://api.github.com/repos/trinitum/Test-mongod/issues{/number}","pulls_url":"https://api.github.com/repos/trinitum/Test-mongod/pulls{/number}","milestones_url":"https://api.github.com/repos/trinitum/Test-mongod/milestones{/number}","notifications_url":"https://api.github.com/repos/trinitum/Test-mongod/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/trinitum/Test-mongod/labels{/name}","releases_url":"https://api.github.com/repos/trinitum/Test-mongod/releases{/id}","created_at":"2015-07-19T21:35:17Z","updated_at":"2015-07-19T21:35:17Z","pushed_at":"2015-07-19T21:47:59Z","git_url":"git://github.com/trinitum/Test-mongod.git","ssh_url":"git@github.com:trinitum/Test-mongod.git","clone_url":"https://github.com/trinitum/Test-mongod.git","svn_url":"https://github.com/trinitum/Test-mongod","homepage":"","size":194,"stargazers_count":0,"watchers_count":0,"language":"Perl","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jshy:master","ref":"master","sha":"fd9b6911373f4a9b5f61584b6e9c25807f693dfb","user":{"login":"jshy","id":578494,"avatar_url":"https://avatars.githubusercontent.com/u/578494?v=3","gravatar_id":"","url":"https://api.github.com/users/jshy","html_url":"https://github.com/jshy","followers_url":"https://api.github.com/users/jshy/followers","following_url":"https://api.github.com/users/jshy/following{/other_user}","gists_url":"https://api.github.com/users/jshy/gists{/gist_id}","starred_url":"https://api.github.com/users/jshy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jshy/subscriptions","organizations_url":"https://api.github.com/users/jshy/orgs","repos_url":"https://api.github.com/users/jshy/repos","events_url":"https://api.github.com/users/jshy/events{/privacy}","received_events_url":"https://api.github.com/users/jshy/received_events","type":"User","site_admin":false},"repo":{"id":17139293,"name":"Test-mongod","full_name":"jshy/Test-mongod","owner":{"login":"jshy","id":578494,"avatar_url":"https://avatars.githubusercontent.com/u/578494?v=3","gravatar_id":"","url":"https://api.github.com/users/jshy","html_url":"https://github.com/jshy","followers_url":"https://api.github.com/users/jshy/followers","following_url":"https://api.github.com/users/jshy/following{/other_user}","gists_url":"https://api.github.com/users/jshy/gists{/gist_id}","starred_url":"https://api.github.com/users/jshy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jshy/subscriptions","organizations_url":"https://api.github.com/users/jshy/orgs","repos_url":"https://api.github.com/users/jshy/repos","events_url":"https://api.github.com/users/jshy/events{/privacy}","received_events_url":"https://api.github.com/users/jshy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jshy/Test-mongod","description":"Throw away instance of MongoDB","fork":false,"url":"https://api.github.com/repos/jshy/Test-mongod","forks_url":"https://api.github.com/repos/jshy/Test-mongod/forks","keys_url":"https://api.github.com/repos/jshy/Test-mongod/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jshy/Test-mongod/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jshy/Test-mongod/teams","hooks_url":"https://api.github.com/repos/jshy/Test-mongod/hooks","issue_events_url":"https://api.github.com/repos/jshy/Test-mongod/issues/events{/number}","events_url":"https://api.github.com/repos/jshy/Test-mongod/events","assignees_url":"https://api.github.com/repos/jshy/Test-mongod/assignees{/user}","branches_url":"https://api.github.com/repos/jshy/Test-mongod/branches{/branch}","tags_url":"https://api.github.com/repos/jshy/Test-mongod/tags","blobs_url":"https://api.github.com/repos/jshy/Test-mongod/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jshy/Test-mongod/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jshy/Test-mongod/git/refs{/sha}","trees_url":"https://api.github.com/repos/jshy/Test-mongod/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jshy/Test-mongod/statuses/{sha}","languages_url":"https://api.github.com/repos/jshy/Test-mongod/languages","stargazers_url":"https://api.github.com/repos/jshy/Test-mongod/stargazers","contributors_url":"https://api.github.com/repos/jshy/Test-mongod/contributors","subscribers_url":"https://api.github.com/repos/jshy/Test-mongod/subscribers","subscription_url":"https://api.github.com/repos/jshy/Test-mongod/subscription","commits_url":"https://api.github.com/repos/jshy/Test-mongod/commits{/sha}","git_commits_url":"https://api.github.com/repos/jshy/Test-mongod/git/commits{/sha}","comments_url":"https://api.github.com/repos/jshy/Test-mongod/comments{/number}","issue_comment_url":"https://api.github.com/repos/jshy/Test-mongod/issues/comments{/number}","contents_url":"https://api.github.com/repos/jshy/Test-mongod/contents/{+path}","compare_url":"https://api.github.com/repos/jshy/Test-mongod/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jshy/Test-mongod/merges","archive_url":"https://api.github.com/repos/jshy/Test-mongod/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jshy/Test-mongod/downloads","issues_url":"https://api.github.com/repos/jshy/Test-mongod/issues{/number}","pulls_url":"https://api.github.com/repos/jshy/Test-mongod/pulls{/number}","milestones_url":"https://api.github.com/repos/jshy/Test-mongod/milestones{/number}","notifications_url":"https://api.github.com/repos/jshy/Test-mongod/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jshy/Test-mongod/labels{/name}","releases_url":"https://api.github.com/repos/jshy/Test-mongod/releases{/id}","created_at":"2014-02-24T14:49:01Z","updated_at":"2014-09-09T16:29:54Z","pushed_at":"2014-03-05T00:31:39Z","git_url":"git://github.com/jshy/Test-mongod.git","ssh_url":"git@github.com:jshy/Test-mongod.git","clone_url":"https://github.com/jshy/Test-mongod.git","svn_url":"https://github.com/jshy/Test-mongod","homepage":"","size":194,"stargazers_count":4,"watchers_count":4,"language":"Perl","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jshy/Test-mongod/pulls/3"},"html":{"href":"https://github.com/jshy/Test-mongod/pull/3"},"issue":{"href":"https://api.github.com/repos/jshy/Test-mongod/issues/3"},"comments":{"href":"https://api.github.com/repos/jshy/Test-mongod/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/jshy/Test-mongod/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/jshy/Test-mongod/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jshy/Test-mongod/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/jshy/Test-mongod/statuses/890487bddc6171b72861883f338773a6d56e4a6d"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":4,"deletions":4,"changed_files":1}}