Skip to content

Commit dbd0c33

Browse files
committed
libct/system: rm Execv
This is not used since commit dac4171. Signed-off-by: Kir Kolyshkin <[email protected]>
1 parent 83ea9e5 commit dbd0c33

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

libcontainer/system/linux.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import (
77
"fmt"
88
"io"
99
"os"
10-
"os/exec"
1110
"strconv"
1211
"syscall"
1312
"unsafe"
@@ -36,14 +35,6 @@ func (p ParentDeathSignal) Set() error {
3635
return SetParentDeathSignal(uintptr(p))
3736
}
3837

39-
func Execv(cmd string, args []string, env []string) error {
40-
name, err := exec.LookPath(cmd)
41-
if err != nil {
42-
return err
43-
}
44-
return Exec(name, args, env)
45-
}
46-
4738
func Exec(cmd string, args []string, env []string) error {
4839
for {
4940
err := unix.Exec(cmd, args, env)

0 commit comments

Comments
 (0)