Sha256: 09cf26cfbfa7d0b90a6e8cb0fe2f680a91eab3d515a4772240afcfebd6e1834e
Contents?: true
Size: 453 Bytes
Versions: 26
Compression:
Stored size: 453 Bytes
Contents
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() } }
Version data entries
26 entries across 26 versions & 1 rubygems