#!/usr/bin/env node

var path = require('path')
var execPath = require(path.join(__dirname, '..', 'lib', 'geckodriver')).path
var cp = require('child_process').spawn(execPath, process.argv.slice(2), {stdio: 'inherit'})
cp.on('exit', process.exit)
process.on('SIGTERM', function() {
  cp.kill('SIGTERM')
  process.exit(1)
})
