]> git.eshelyaron.com Git - emacs.git/commit
Let Tramp sudo sessions expire after a timeout
authorMichael Albinus <michael.albinus@gmx.de>
Wed, 21 Nov 2018 12:23:01 +0000 (13:23 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Wed, 21 Nov 2018 12:23:01 +0000 (13:23 +0100)
commitfb200f3e5775fa2811ba270c2a7b0295b42539a0
treedc9975797d2d784d82d7fc1c05632fd9d9eba559
parent166f6274b4118344612e60fba831e223728f3e89
Let Tramp sudo sessions expire after a timeout

* doc/misc/tramp.texi (Inline methods) <sudo, doas>: Both methods expire
the underlying session per default.
(Predefined connection information): Explain "session-timeout".

* etc/NEWS: Mention Tramp session expiration.

* lisp/net/tramp-sh.el (tramp-methods) <sudo, doas>:
Add `tramp-session-timeout'.
(tramp-timeout-session): New defun.
(tramp-maybe-open-connection): Handle session timeout.

* lisp/net/tramp.el (tramp-methods): Adapt docstring.
(tramp-equal-remote): Extend.
doc/misc/tramp.texi
etc/NEWS
lisp/net/tramp-sh.el
lisp/net/tramp.el