diff options
author | Hans Nilsson <[email protected]> | 2018-11-08 12:00:42 +0100 |
---|---|---|
committer | Hans Nilsson <[email protected]> | 2018-11-08 12:00:42 +0100 |
commit | 55d97726f4a660c3204b2290f81ac1cc01318aed (patch) | |
tree | 05397c33b7bc00ec4875397a8ce3f52713423052 /lib/ssh/src/ssh.hrl | |
parent | 279ca6bc6a456658e63ae87dbb7ce5f90933432e (diff) | |
parent | 74bfc54aaa15b07cd3c09ba3aa0470d3c986cf6e (diff) | |
download | otp-55d97726f4a660c3204b2290f81ac1cc01318aed.tar.gz otp-55d97726f4a660c3204b2290f81ac1cc01318aed.tar.bz2 otp-55d97726f4a660c3204b2290f81ac1cc01318aed.zip |
Merge branch 'hans/ssh/exec_doc_error/OTP-15416' into maint
* hans/ssh/exec_doc_error/OTP-15416:
ssh: Fix doc error in daemon 'exec' option
Diffstat (limited to 'lib/ssh/src/ssh.hrl')
-rw-r--r-- | lib/ssh/src/ssh.hrl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/ssh/src/ssh.hrl b/lib/ssh/src/ssh.hrl index 3ac74c4925..233f3caa5d 100644 --- a/lib/ssh/src/ssh.hrl +++ b/lib/ssh/src/ssh.hrl @@ -293,8 +293,9 @@ -type 'shell_fun/1'() :: fun((User::string()) -> pid()) . -type 'shell_fun/2'() :: fun((User::string(), PeerAddr::inet:ip_address()) -> pid()). --type exec_daemon_option() :: {exec, 'exec_fun/1'() | 'exec_fun/2'() | 'exec_fun/3'() }. - +-type exec_daemon_option() :: {exec, exec_spec()} . +-type exec_spec() :: {direct, exec_fun()} . +-type exec_fun() :: 'exec_fun/1'() | 'exec_fun/2'() | 'exec_fun/3'(). -type 'exec_fun/1'() :: fun((Cmd::string()) -> exec_result()) . -type 'exec_fun/2'() :: fun((Cmd::string(), User::string()) -> exec_result()) . -type 'exec_fun/3'() :: fun((Cmd::string(), User::string(), ClientAddr::ip_port()) -> exec_result()) . |