mirror of
https://github.com/apple/container.git
synced 2026-11-16 02:37:52 +00:00
Vminitd: Remove unused method (#401)
This commit is contained in:
1 parent
8a9b0deb82
commit
a31abd73a4
1 file changed
-13
@@ -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