Files
NapCatQQ/.pnpm-store/v3/files/e0/cbbea1d9e2a920bc032953c291e6e51166b086723640cd69d93035e193232beb90de1c3846bd4a2f46d1171ae3c569a29c35cde10a501b0a119fbed3b2d58d
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

21 lines
453 B
Plaintext

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()
}
}