1 | #!/usr/bin/env node
|
2 |
|
3 | var path = require('path')
|
4 | var execPath = require(path.join(__dirname, '..', 'lib', 'geckodriver')).path
|
5 | var cp = require('child_process').spawn(execPath, process.argv.slice(2), {stdio: 'inherit'})
|
6 | cp.on('exit', process.exit)
|
7 | process.on('SIGTERM', function() {
|
8 | cp.kill('SIGTERM')
|
9 | process.exit(1)
|
10 | })
|