diff options
author | Matthew Heon <matthew.heon@pm.me> | 2020-03-09 09:48:47 -0400 |
---|---|---|
committer | Matthew Heon <matthew.heon@pm.me> | 2020-03-09 09:50:40 -0400 |
commit | ffce869daa6c4956bc1509b7b10726a266b74741 (patch) | |
tree | 617093cb3f3b533bc9957f6dfe3b8fe5a7e40c7c /libpod/define | |
parent | 6be87b21862888e88daa2bc502ea84123d64850b (diff) | |
download | podman-ffce869daa6c4956bc1509b7b10726a266b74741.tar.gz podman-ffce869daa6c4956bc1509b7b10726a266b74741.tar.bz2 podman-ffce869daa6c4956bc1509b7b10726a266b74741.zip |
Revert "Exec: use ErrorConmonRead"
This reverts commit d3d97a25e8c87cf741b2e24ac01ef84962137106.
This does not resolve the issues we expected it would, and has
some unexpected side effects with the upcoming exec rework.
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
Diffstat (limited to 'libpod/define')
-rw-r--r-- | libpod/define/exec_codes.go | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/libpod/define/exec_codes.go b/libpod/define/exec_codes.go index c2ec08666..f94616b33 100644 --- a/libpod/define/exec_codes.go +++ b/libpod/define/exec_codes.go @@ -1,7 +1,6 @@ package define import ( - "math" "strings" "github.com/pkg/errors" @@ -18,11 +17,6 @@ const ( ExecErrorCodeCannotInvoke = 126 // ExecErrorCodeNotFound is the error code to return when a command cannot be found ExecErrorCodeNotFound = 127 - // ErrorConmonRead is a bogus value that can neither be a valid PID or exit code. It is - // used because conmon will send a negative value when sending a PID back over a pipe FD - // to signify something went wrong in the runtime. We need to differentiate between that - // value and a failure on the podman side of reading that value. Thus, we use ErrorConmonRead - ErrorConmonRead = math.MinInt32 - 1 ) // TranslateExecErrorToExitCode takes an error and checks whether it |