diff options
author | Matthew Heon <matthew.heon@pm.me> | 2020-03-09 13:07:20 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-09 13:07:20 -0400 |
commit | d2764e93df580755fe1b3a1befb79eeff75c4bc4 (patch) | |
tree | 55d76cb8b46031646d13ec4c64750e7d1b34f395 /libpod/oci.go | |
parent | 342d99fbc2a990dcd4c122b45a8bb1a14059a338 (diff) | |
parent | 521ff14d83e387f39058c65361a68d83edae61ba (diff) | |
download | podman-d2764e93df580755fe1b3a1befb79eeff75c4bc4.tar.gz podman-d2764e93df580755fe1b3a1befb79eeff75c4bc4.tar.bz2 podman-d2764e93df580755fe1b3a1befb79eeff75c4bc4.zip |
Merge pull request #5429 from mheon/revert_exec_changes
Revert exec changes
Diffstat (limited to 'libpod/oci.go')
-rw-r--r-- | libpod/oci.go | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/libpod/oci.go b/libpod/oci.go index 41d420664..27edebefc 100644 --- a/libpod/oci.go +++ b/libpod/oci.go @@ -70,7 +70,7 @@ type OCIRuntime interface { // ExecContainer executes a command in a running container. // Returns an int (exit code), error channel (errors from attach), and // error (errors that occurred attempting to start the exec session). - ExecContainer(ctr *Container, sessionID string, options *ExecOptions) (chan DataAndErr, chan error, error) + ExecContainer(ctr *Container, sessionID string, options *ExecOptions) (int, chan error, error) // ExecStopContainer stops a given exec session in a running container. // SIGTERM with be sent initially, then SIGKILL after the given timeout. // If timeout is 0, SIGKILL will be sent immediately, and SIGTERM will @@ -159,10 +159,3 @@ type HTTPAttachStreams struct { Stdout bool Stderr bool } - -// DataAndErr is a generic structure for passing around an int and an error -// it is especially useful for getting information from conmon -type DataAndErr struct { - data int - err error -} |