mirror of
https://github.com/stablyai/orca.git
synced 2026-10-29 16:17:51 +00:00
* fix(linux): release orphaned processes when their owner exits * fix(linux): handle inhibitor errors until streams close --------- Co-authored-by: m4air <m4air@m4airs-MacBook-Air.local>
9 lines
347 B
JavaScript
9 lines
347 B
JavaScript
const { writeFileSync } = require('node:fs')
|
|
const { LinuxLidSleepAssertion } = require(process.argv[2])
|
|
|
|
const assertion = new LinuxLidSleepAssertion()
|
|
assertion.start('docker-lifetime-oracle')
|
|
writeFileSync(process.argv[3], String(process.pid))
|
|
process.stdin.on('data', () => assertion.stop('docker-release-oracle'))
|
|
setInterval(() => {}, 1000)
|