mirror of
https://github.com/deepseek-ai/deepseek-harness
synced 2026-08-15 21:04:50 +00:00
fix(subprocess): prioritize host-exit cleanup listener
This commit is contained in:
@@ -48,7 +48,7 @@ export class LocalSubprocessService extends SubprocessService {
|
||||
super(ctx)
|
||||
ctx.effect(() => {
|
||||
const onHostExit = (): void => { this.terminateForHostExit() }
|
||||
process.on('exit', onHostExit)
|
||||
process.prependListener('exit', onHostExit)
|
||||
return async () => {
|
||||
try {
|
||||
await this.disposeManagedProcesses()
|
||||
|
||||
Reference in New Issue
Block a user