{"action":"created","issue":{"url":"https://api.github.com/repos/nodejs/node/issues/7696","repository_url":"https://api.github.com/repos/nodejs/node","labels_url":"https://api.github.com/repos/nodejs/node/issues/7696/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/node/issues/7696/comments","events_url":"https://api.github.com/repos/nodejs/node/issues/7696/events","html_url":"https://github.com/nodejs/node/pull/7696","id":165221937,"number":7696,"title":"lib: allow custom names for spawned processes","user":{"login":"ppannuto","id":339422,"avatar_url":"https://avatars.githubusercontent.com/u/339422?v=3","gravatar_id":"","url":"https://api.github.com/users/ppannuto","html_url":"https://github.com/ppannuto","followers_url":"https://api.github.com/users/ppannuto/followers","following_url":"https://api.github.com/users/ppannuto/following{/other_user}","gists_url":"https://api.github.com/users/ppannuto/gists{/gist_id}","starred_url":"https://api.github.com/users/ppannuto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppannuto/subscriptions","organizations_url":"https://api.github.com/users/ppannuto/orgs","repos_url":"https://api.github.com/users/ppannuto/repos","events_url":"https://api.github.com/users/ppannuto/events{/privacy}","received_events_url":"https://api.github.com/users/ppannuto/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nodejs/node/labels/child_process","name":"child_process","color":"f7c6c7"},{"url":"https://api.github.com/repos/nodejs/node/labels/process","name":"process","color":"00aaff"},{"url":"https://api.github.com/repos/nodejs/node/labels/semver-minor","name":"semver-minor","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":38,"created_at":"2016-07-13T02:16:38Z","updated_at":"2016-08-01T18:48:40Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/nodejs/node/pulls/7696","html_url":"https://github.com/nodejs/node/pull/7696","diff_url":"https://github.com/nodejs/node/pull/7696.diff","patch_url":"https://github.com/nodejs/node/pull/7696.patch"},"body":"<!--\r\nThank you for your pull request. Please review below requirements.\r\n\r\nBug fixes and new features should include tests and possibly benchmarks.\r\n\r\nContributors guide: https://github.com/nodejs/node/blob/master/CONTRIBUTING.md\r\n-->\r\n\r\n##### Checklist\r\n<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->\r\n\r\n- [X] `make -j4 test` (UNIX), or `vcbuild test nosign` (Windows) passes\r\n- [X] tests and/or benchmarks are included\r\n- [X] documentation is changed or added\r\n- [X] commit message follows commit guidelines\r\n\r\n##### Affected core subsystem(s)\r\n<!-- Provide affected core subsystem(s) (like doc, cluster, crypto, etc). -->\r\n\r\n`lib/child_process.js`\r\n\r\n##### Description of change\r\n<!-- Provide a description of the change below this comment. -->\r\n\r\nAdd a `name` parameter to the `options` accepted by\r\n`child_process.spawn` that sets the spawned process name (`argv[0]`)\r\nto a custom value. The default behavior is unchanged if a `name`\r\nparameter is not supplied.\r\n\r\nIt is useful to be able to set the name of a process you are spawning.\r\nOne motivating example is an application runner service that spawn\r\nseveral other node applications. Instead of showing up as 20 different\r\n`node` processes, the application runner can give them meaningful names.\r\n\r\nWhile child processes can write `process.title` to change their name,\r\nthis has two limitations:\r\n - it requires modifying all child processes\r\n - it is limited to the length of the initial `argv[0]` in practice"},"comment":{"url":"https://api.github.com/repos/nodejs/node/issues/comments/236670894","html_url":"https://github.com/nodejs/node/pull/7696#issuecomment-236670894","issue_url":"https://api.github.com/repos/nodejs/node/issues/7696","id":236670894,"user":{"login":"ppannuto","id":339422,"avatar_url":"https://avatars.githubusercontent.com/u/339422?v=3","gravatar_id":"","url":"https://api.github.com/users/ppannuto","html_url":"https://github.com/ppannuto","followers_url":"https://api.github.com/users/ppannuto/followers","following_url":"https://api.github.com/users/ppannuto/following{/other_user}","gists_url":"https://api.github.com/users/ppannuto/gists{/gist_id}","starred_url":"https://api.github.com/users/ppannuto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppannuto/subscriptions","organizations_url":"https://api.github.com/users/ppannuto/orgs","repos_url":"https://api.github.com/users/ppannuto/repos","events_url":"https://api.github.com/users/ppannuto/events{/privacy}","received_events_url":"https://api.github.com/users/ppannuto/received_events","type":"User","site_admin":false},"created_at":"2016-08-01T18:48:40Z","updated_at":"2016-08-01T18:48:40Z","body":"Updated. I didn't currently change the `Note` italics, but can if you'd like."}}
{"actor":{"display_login":"ppannuto"}}