mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Add docstring to reexec.Command
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
This commit is contained in:
parent
77bbee3d00
commit
9738b9319b
3 changed files with 8 additions and 0 deletions
|
@ -7,6 +7,10 @@ import (
|
|||
"syscall"
|
||||
)
|
||||
|
||||
// Command returns *exec.Cmd which have Path as current binary. Also it setting
|
||||
// SysProcAttr.Pdeathsig to SIGTERM.
|
||||
// For example if current binary is "docker" at "/usr/bin", then cmd.Path will
|
||||
// be set to "/usr/bin/docker".
|
||||
func Command(args ...string) *exec.Cmd {
|
||||
return &exec.Cmd{
|
||||
Path: Self(),
|
||||
|
|
|
@ -6,6 +6,7 @@ import (
|
|||
"os/exec"
|
||||
)
|
||||
|
||||
// Command is unsupported on operating systems apart from Linux and Windows.
|
||||
func Command(args ...string) *exec.Cmd {
|
||||
return nil
|
||||
}
|
||||
|
|
|
@ -6,6 +6,9 @@ import (
|
|||
"os/exec"
|
||||
)
|
||||
|
||||
// Command returns *exec.Cmd which have Path as current binary.
|
||||
// For example if current binary is "docker.exe" at "C:\", then cmd.Path will
|
||||
// be set to "C:\docker.exe".
|
||||
func Command(args ...string) *exec.Cmd {
|
||||
return &exec.Cmd{
|
||||
Path: Self(),
|
||||
|
|
Loading…
Add table
Reference in a new issue