rsms/node-imagemagick — pull request #47 by bigeasy (2012-07-03 20:00:16+00:00)
Title: Wait on `close` instead of `exit`.

If the version of Node.js is less than `0.7`, wait on a `"close"` event from the ImageMagick process instead of `"exit"`. As of `0.7`, the `exit` "fires when the child actually exits, `close` fires when all stdio streams have closed."

See:

https://groups.google.com/forum/#!topic/nodejs/agsTbL-fco0/discussion