Skip to content

Commit 57ad7ad

Browse files
authored
Throw an error in StandardIO.resize() (#350)
Throw an error in `StandardIO.resize()`, which is unsupported.
1 parent 2dbba78 commit 57ad7ad

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

vminitd/Sources/vminitd/StandardIO.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
// limitations under the License.
1515
//===----------------------------------------------------------------------===//
1616

17+
import ContainerizationError
1718
import ContainerizationOS
1819
import Foundation
1920
import Logging
@@ -119,8 +120,9 @@ final class StandardIO: ManagedProcess.IO & Sendable {
119120
}
120121
}
121122

122-
// NOP
123-
func resize(size: Terminal.Size) throws {}
123+
func resize(size: Terminal.Size) throws {
124+
throw ContainerizationError(.unsupported, message: "resize not supported")
125+
}
124126

125127
func close() throws {
126128
self.state.withLock {

0 commit comments

Comments
 (0)