{"push_id":824253669,"size":1,"distinct_size":1,"ref":"refs/heads/jcr-pass-spawn-options","head":"4809769d21f72d36fe9da924902b5fbf5d072789","before":"7dba8809a4fc5e67d5fa43e77dffb2f414cf9d51","commits":[{"sha":"4809769d21f72d36fe9da924902b5fbf5d072789","author":{"email":"4ce87f5ca5596825d366b739cd5c4750d74e0217@gmail.com","name":"Collin Redding"},"message":"Allow passing options to posix-spawn\n\nThis allows passing options to posix-spawn which allows extra\nbehavior for the child process that is spawned.\n\nThis changes the command interface to take a command string and\nopts hash instead of an env hash. The env hash can now be specified\nusing the `:env` key in the opts hash. This allows passing an\n`:options` key in the opts hash for specifying the posix spawn\noptions.\n\nThis is needed for ruby 1.9+. It closes file descriptors when a\nchild process is spawned. This specifically caused Qs benchmark\nscript to not work anymore because it used an IO pipe to\ncommunicate between the parent and child process. With this change\nthe Qs benchmark script can specify the file descriptors it wants\nto redirect and the script works as it previously did.\n\nThis also updates the README documentation for using the new\noptions. This includes a section showing how environment variables\ncan be used which should have been added when environment variable\nsupport was added.","distinct":true,"url":"https://api.github.com/repos/redding/scmd/commits/4809769d21f72d36fe9da924902b5fbf5d072789"}]}