Dup3 wraps [unix.Dup3].
(oldfd, newfd, flags int)
| 9 | |
| 10 | // Dup3 wraps [unix.Dup3]. |
| 11 | func Dup3(oldfd, newfd, flags int) error { |
| 12 | err := retryOnEINTR(func() error { |
| 13 | return unix.Dup3(oldfd, newfd, flags) |
| 14 | }) |
| 15 | return os.NewSyscallError("dup3", err) |
| 16 | } |
| 17 | |
| 18 | // Exec wraps [unix.Exec]. |
| 19 | func Exec(cmd string, args, env []string) error { |
no test coverage detected
searching dependent graphs…