runtime compiles on Windows
Signed-off-by: John Howard <jhoward@microsoft.com>
This commit is contained in:
parent
ab74e7b2aa
commit
2b8f022950
16 changed files with 390 additions and 281 deletions
|
@ -25,3 +25,18 @@ func getControlPipe(path string) (*os.File, error) {
|
|||
func (p *process) Signal(s os.Signal) error {
|
||||
return syscall.Kill(p.pid, s.(syscall.Signal))
|
||||
}
|
||||
|
||||
func populateProcessStateForEncoding(config *processConfig, uid int, gid int) ProcessState {
|
||||
return ProcessState{
|
||||
ProcessSpec: config.processSpec,
|
||||
Exec: config.exec,
|
||||
PlatformProcessState: PlatformProcessState{
|
||||
Checkpoint: config.checkpoint,
|
||||
RootUID: uid,
|
||||
RootGID: gid,
|
||||
},
|
||||
Stdin: config.stdio.Stdin,
|
||||
Stdout: config.stdio.Stdout,
|
||||
Stderr: config.stdio.Stderr,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue