mirror of
https://github.com/ultravioletrs/cocos.git
synced 2026-06-23 04:10:25 +00:00
NOISSUE - Stop computation gracefully (#241)
* stop gracefully Signed-off-by: Sammy Oina <sammyoina@gmail.com> * use constant Signed-off-by: Sammy Oina <sammyoina@gmail.com> --------- Signed-off-by: Sammy Oina <sammyoina@gmail.com>
This commit is contained in:
committed by
GitHub
parent
c14a6338cc
commit
2f4ca414cb
@@ -62,14 +62,3 @@ func RunCmdOutput(command string, args ...string) (string, error) {
|
||||
|
||||
return string(output), nil
|
||||
}
|
||||
|
||||
// RunCmdStart starts the specified command and returns the *exec.Cmd for the running process.
|
||||
func RunCmdStart(command string, args ...string) (*exec.Cmd, error) {
|
||||
cmd := exec.Command(command, args...)
|
||||
|
||||
if err := cmd.Start(); err != nil {
|
||||
return nil, fmt.Errorf("error starting command '%s': %s", cmd.String(), err)
|
||||
}
|
||||
|
||||
return cmd, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user