File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Sources/Services/ContainerSandboxService Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ if let path = ProcessInfo.processInfo.environment["CONTAINERIZATION_PATH"] {
2727 scVersion = " latest "
2828} else {
2929 scVersion = " 0.1.1 "
30- scDependency = . package ( url: " https://github.com/apple/containerization.git " , exact : Version ( stringLiteral : scVersion ) )
30+ scDependency = . package ( url: " https://github.com/apple/containerization.git " , branch : " main " )
3131}
3232
3333let releaseVersion = ProcessInfo . processInfo. environment [ " RELEASE_VERSION " ] ?? " 0.0.0 "
Original file line number Diff line number Diff line change @@ -290,13 +290,14 @@ public actor SandboxService {
290290 try await self . monitor. registerProcess (
291291 id: id,
292292 onExit: { id, code in
293- guard await self . processes [ id] != nil else {
293+ guard let process = await self . processes [ id] ? . process else {
294294 throw ContainerizationError ( . invalidState, message: " ProcessInfo missing for process \( id) " )
295295 }
296296 for cc in await self . waiters [ id] ?? [ ] {
297297 cc. resume ( returning: code)
298298 }
299299 await self . removeWaiters ( for: id)
300+ try await process. delete ( )
300301 try await self . setProcessState ( id: id, state: . stopped( code) )
301302 } )
302303 return message. reply ( )
You can’t perform that action at this time.
0 commit comments