diff options
author | Marco Vedovati <mvedovati@suse.com> | 2019-06-13 19:33:58 +0200 |
---|---|---|
committer | Marco Vedovati <mvedovati@suse.com> | 2019-06-26 10:12:34 +0200 |
commit | 7e3f1c21b060762c39139d59f73ad589a54e03fa (patch) | |
tree | 7f5277de21ca56187c1a794cc79ad0c643aaca4e /utils/utils.go | |
parent | c9078936dd1bf5bdb59066eb1bdd179ac58f98e1 (diff) | |
download | podman-7e3f1c21b060762c39139d59f73ad589a54e03fa.tar.gz podman-7e3f1c21b060762c39139d59f73ad589a54e03fa.tar.bz2 podman-7e3f1c21b060762c39139d59f73ad589a54e03fa.zip |
libpod: specify a detach keys sequence in libpod.conf
Add the ability of specifying a detach keys sequence in libpod.conf
Signed-off-by: Marco Vedovati <mvedovati@suse.com>
Diffstat (limited to 'utils/utils.go')
-rw-r--r-- | utils/utils.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/utils/utils.go b/utils/utils.go index 86adfb967..0ac6bc6d3 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -59,11 +59,6 @@ var ErrDetach = errors.New("detached from container") // CopyDetachable is similar to io.Copy but support a detach key sequence to break out. func CopyDetachable(dst io.Writer, src io.Reader, keys []byte) (written int64, err error) { - if len(keys) == 0 { - // Default keys : ctrl-p,ctrl-q - keys = []byte{16, 17} - } - buf := make([]byte, 32*1024) for { nr, er := src.Read(buf) |