@@ -28,7 +28,7 @@ final class ManagedProcess: Sendable {
2828 let id : String
2929
3030 private let log : Logger
31- private let process : Command
31+ private let command : Command
3232 private let state : Mutex < State >
3333 private let owningPid : Int32 ?
3434 private let ackPipe : Pipe
@@ -108,7 +108,7 @@ final class ManagedProcess: Sendable {
108108 args = [ " run " , " --bundle-path " , bundle. path. path]
109109 }
110110
111- var process = Command (
111+ var command = Command (
112112 " /sbin/vmexec " ,
113113 arguments: args,
114114 extraFiles: [
@@ -121,13 +121,13 @@ final class ManagedProcess: Sendable {
121121 if stdio. terminal {
122122 log. info ( " setting up terminal IO " )
123123 let attrs = Command . Attrs ( setsid: false , setctty: false )
124- process . attrs = attrs
124+ command . attrs = attrs
125125 io = try TerminalIO (
126126 stdio: stdio,
127127 log: log
128128 )
129129 } else {
130- process . attrs = . init( setsid: false )
130+ command . attrs = . init( setsid: false )
131131 io = StandardIO (
132132 stdio: stdio,
133133 log: log
@@ -137,10 +137,10 @@ final class ManagedProcess: Sendable {
137137 log. info ( " starting io " )
138138
139139 // Setup IO early. We expect the host to be listening already.
140- try io. start ( process: & process )
140+ try io. start ( process: & command )
141141
142142 self . cgroupManager = cgroupManager
143- self . process = process
143+ self . command = command
144144 self . terminal = stdio. terminal
145145 self . bundle = bundle
146146 self . state = Mutex ( State ( io: io) )
@@ -157,7 +157,7 @@ extension ManagedProcess {
157157 ] )
158158
159159 // Start the underlying process.
160- try process . start ( )
160+ try command . start ( )
161161 defer {
162162 try ? self . ackPipe. fileHandleForWriting. close ( )
163163 try ? self . syncPipe. fileHandleForReading. close ( )
0 commit comments