mirror of
https://github.com/soconnor0919/beenpad.git
synced 2026-02-05 00:06:40 -05:00
first commit
This commit is contained in:
20
node_modules/siginfo/index.js
generated
vendored
Normal file
20
node_modules/siginfo/index.js
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
module.exports = function (query, force) {
|
||||
var isAttached = false
|
||||
if (process.stderr.isTTY || force === true) {
|
||||
isAttached = true
|
||||
process.on('SIGINFO', onsiginfo)
|
||||
process.on('SIGUSR1', onsiginfo)
|
||||
}
|
||||
|
||||
return function () {
|
||||
if (isAttached === true) {
|
||||
process.removeListener('SIGINFO', onsiginfo)
|
||||
process.removeListener('SIGUSR1', onsiginfo)
|
||||
isAttached = false
|
||||
}
|
||||
}
|
||||
|
||||
function onsiginfo () {
|
||||
query()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user