diff --git a/cli.js b/cli.js
index <HASH>..<HASH> 100755
--- a/cli.js
+++ b/cli.js
@@ -6,11 +6,12 @@ var path = require('path')
 var prog = path.resolve(process.argv[2])
 
 console.log('probing program', prog)
-console.log('kill -SIGUSR1', process.pid, 'for logging')
 
 var nodeArgs = [
   '-r',
   path.join(__dirname, 'include.js')
 ]
 var nodeOpts = { stdio: 'inherit' }
-spawn('node', nodeArgs.concat(prog), nodeOpts)
+var child = spawn('node', nodeArgs.concat(prog), nodeOpts)
+
+console.log('kill -SIGUSR1', child.pid, 'for logging')
diff --git a/include.js b/include.js
index <HASH>..<HASH> 100644
--- a/include.js
+++ b/include.js
@@ -1,3 +1,3 @@
 var why = require('./')
 
-process.on('SIGUSR1', why)
+process.on('SIGUSR1', function() { why() })
Fix CLI reporting the wrong PID and causing logging to fail on SIGUSR1 (#<I>)

* Fix not reporting the child process PID



* Fix 'SIGUSR1' being passed as the logger