mirror of
https://github.com/containers/podman.git
synced 2025-08-06 03:19:52 +08:00
Allow users to disable detach keys
If user specifies --detach-keys="", this will disable the feature. Adding define.DefaultDetachKeys to help screen to help identify detach keys. Updated man pages with additonal information. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
@ -152,7 +152,7 @@ func (c *Container) attachToExec(streams *AttachStreams, keys string, resize <-c
|
||||
func processDetachKeys(keys string) ([]byte, error) {
|
||||
// Check the validity of the provided keys first
|
||||
if len(keys) == 0 {
|
||||
keys = define.DefaultDetachKeys
|
||||
return []byte{}, nil
|
||||
}
|
||||
detachKeys, err := term.ToBytes(keys)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user