Lines Matching refs:Cmd
98 cmd *command
185 if env.cmd != nil {
186 env.cmd.close()
234 if env.cmd == nil {
241 env.cmd, err0 = makeCommand(env.pid, env.bin, env.config, env.inFile, env.outFile, env.out)
247 output, failed, hanged, restart, err0 = env.cmd.exec(opts, progData)
249 env.cmd.close()
250 env.cmd = nil
259 env.cmd.close()
260 env.cmd = nil
408 cmd *exec.Cmd
515 cmd := osutil.Command(bin[0], bin[1:]...)
517 cmd.ExtraFiles = []*os.File{inFile, outFile}
519 cmd.Env = []string{}
520 cmd.Dir = dir
521 cmd.Stdin = outrp
522 cmd.Stdout = inwp
525 cmd.Stderr = os.Stdout
530 cmd.Stderr = wp
554 if err := cmd.Start(); err != nil {
557 c.cmd = cmd
572 if c.cmd != nil {
573 c.cmd.Process.Kill()
625 c.cmd.Process.Kill()
629 if c.cmd.ProcessState != nil {
631 if osutil.ProcessExitStatus(c.cmd.ProcessState) == statusFail {
639 err := c.cmd.Wait()
681 c.cmd.Process.Kill()
726 c.cmd.Process.Kill()
735 exitStatus = osutil.ProcessExitStatus(c.cmd.ProcessState)