Files
meteor/packages/spiderable
David Glasser aec2e586d8 spiderable: Correctly kill phantomjs after timeout. Fixes #571.
The previous version only killed the wrapper bash script, not the child. We now
work around the broken (socketpair) stdin presented to Node's child processes by
using a bash heredoc rather than "cat |"; this means we can use exec, which only
gives us one process to clean up.

While we're at it, simplify code by switching from child_process.spawn to
child_process.execFile, which does the work of capturing stdout and setting a
timeout for us automatically.
2013-01-08 22:51:40 -08:00
..
2012-08-02 22:21:13 -07:00
2012-08-02 22:21:13 -07:00