UNPKG

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