Home | History | Annotate | Download | only in exec

Lines Matching full:nil

47 	// If the Args field is empty or nil, Run uses {Path}.
53 // If Env is nil, Run uses the current process's environment.
62 // If Stdin is nil, the process reads from the null device (os.DevNull).
74 // If either is nil, Run connects the corresponding file descriptor
84 // standard error. If non-nil, entry i becomes file descriptor 3+i.
128 if lp, err := LookPath(name); err != nil {
147 if c.Env != nil {
162 // It is non-nil everywhere but Plan 9, which lacks EPIPE. See exec_posix.go.
166 if c.Stdin == nil {
168 if err != nil {
176 return f, nil
180 if err != nil {
188 if skip := skipStdinCopyError; skip != nil && skip(err) {
189 err = nil
191 if err1 := pw.Close(); err == nil {
196 return pr, nil
204 if c.Stderr != nil && interfaceEqual(c.Stderr, c.Stdout) {
205 return c.childFiles[1], nil
211 if w == nil {
213 if err != nil {
221 return f, nil
225 if err != nil {
236 return pw, nil
247 // The returned error is nil if the command runs, has no problems
255 if err := c.Start(); err != nil {
280 if err != nil {
284 return path + ext, nil
292 if c.lookPathErr != nil {
299 if err != nil {
306 if c.Process != nil {
313 if err != nil {
329 if err != nil {
344 return nil
359 // The returned error is nil if the command runs, has no problems
373 if c.Process == nil {
385 if err := <-c.errch; err != nil && copyError == nil {
392 if err != nil {
403 if c.Stdout != nil {
404 return nil, errors.New("exec: Stdout already set")
415 if c.Stdout != nil {
416 return nil, errors.New("exec: Stdout already set")
418 if c.Stderr != nil {
419 return nil, errors.New("exec: Stderr already set")
435 if c.Stdin != nil {
436 return nil, errors.New("exec: Stdin already set")
438 if c.Process != nil {
439 return nil, errors.New("exec: StdinPipe after process started")
442 if err != nil {
443 return nil, err
449 return wc, nil
477 if c.Stdout != nil {
478 return nil, errors.New("exec: Stdout already set")
480 if c.Process != nil {
481 return nil, errors.New("exec: StdoutPipe after process started")
484 if err != nil {
485 return nil, err
490 return pr, nil
502 if c.Stderr != nil {
503 return nil, errors.New("exec: Stderr already set")
505 if c.Process != nil {
506 return nil, errors.New("exec: StderrPipe after process started")
509 if err != nil {
510 return nil, err
515 return pr, nil