mirror of
https://github.com/apple/container.git
synced 2026-09-12 10:45:42 +00:00
Vminitd: Remove unused method (#401)
This commit is contained in:
@@ -414,19 +414,6 @@ extension Vminitd {
|
||||
})
|
||||
return response.result
|
||||
}
|
||||
|
||||
/// Syncing shutdown will send a SIGTERM to all processes
|
||||
/// and wait, perform a sync operation, then issue a SIGKILL
|
||||
/// to the remaining processes before syncing again.
|
||||
public func syncingShutdown() async throws {
|
||||
_ = try await self.kill(pid: -1, signal: SIGTERM)
|
||||
try await Task.sleep(for: .milliseconds(10))
|
||||
try await self.sync()
|
||||
|
||||
_ = try await self.kill(pid: -1, signal: SIGKILL)
|
||||
try await Task.sleep(for: .milliseconds(10))
|
||||
try await self.sync()
|
||||
}
|
||||
}
|
||||
|
||||
extension Hosts {
|
||||
|
||||
Reference in New Issue
Block a user