mirror of
https://github.com/containers/podman.git
synced 2025-06-20 09:03:43 +08:00
Implement conmon exec
This includes: Implement exec -i and fix some typos in description of -i docs pass failed runtime status to caller Add resize handling for a terminal connection Customize exec systemd-cgroup slice fix healthcheck fix top add --detach-keys Implement podman-remote exec (jhonce) * Cleanup some orphaned code (jhonce) adapt remote exec for conmon exec (pehunt) Fix healthcheck and exec to match docs Introduce two new OCIRuntime errors to more comprehensively describe situations in which the runtime can error Use these different errors in branching for exit code in healthcheck and exec Set conmon to use new api version Signed-off-by: Jhon Honce <jhonce@redhat.com> Signed-off-by: Peter Hunt <pehunt@redhat.com>
This commit is contained in:
@ -82,9 +82,10 @@ func (i *LibpodAPI) Attach(call iopodman.VarlinkCall, name string, detachKeys st
|
||||
if finalErr != define.ErrDetach && finalErr != nil {
|
||||
logrus.Error(finalErr)
|
||||
}
|
||||
quitWriter := virtwriter.NewVirtWriteCloser(writer, virtwriter.Quit)
|
||||
_, err = quitWriter.Write([]byte("HANG-UP"))
|
||||
// TODO error handling is not quite right here yet
|
||||
|
||||
if err = virtwriter.HangUp(writer); err != nil {
|
||||
logrus.Errorf("Failed to HANG-UP attach to %s: %s", ctr.ID(), err.Error())
|
||||
}
|
||||
return call.Writer.Flush()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user