Files
orca/config/docker/linux-lid-sleep-assertion/owner.cjs
T
OrcaWinandm4air ba742a86bb fix(linux): release orphaned processes when their owner exits (#22247)
* 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>
2026-09-22 05:10:03 -07:00

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)