Skip to content

Commit

Permalink
Remove dependeny on siginfo package (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonkoops authored Jul 12, 2024
1 parent 06ca4c4 commit c1962ce
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 12 deletions.
3 changes: 1 addition & 2 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,5 @@ var nodeArgs = [
path.join(import.meta.dirname, 'include.js')
]
var nodeOpts = { stdio: 'inherit' }
var child = spawn('node', nodeArgs.concat(prog).concat(progArgs), nodeOpts)

console.log('kill -SIGUSR1', child.pid, 'for logging')
spawn('node', nodeArgs.concat(prog).concat(progArgs), nodeOpts)
6 changes: 4 additions & 2 deletions include.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import whyIsNodeRunning from './index.js'
import siginfo from 'siginfo'

siginfo(whyIsNodeRunning, true)
process.on('SIGINFO', () => whyIsNodeRunning())
process.on('SIGUSR1', () => whyIsNodeRunning())

console.log('kill -SIGUSR1', process.pid, 'for logging')
7 changes: 0 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"index.js"
],
"dependencies": {
"siginfo": "^2.0.0",
"stackback": "0.0.2"
},
"bin": {
Expand Down

0 comments on commit c1962ce

Please sign in to comment.