aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Valim <[email protected]>2019-05-07 12:02:33 +0200
committerGitHub <[email protected]>2019-05-07 12:02:33 +0200
commitb9051f0f94c3d9f56f9d8d9b9c316446db7fd7a9 (patch)
tree8e13ee774387e7ce83024b8487df5232e1d13b93
parentd9ab266f38b0fd6d37a4f5d930ae1db633c0436e (diff)
downloadotp-b9051f0f94c3d9f56f9d8d9b9c316446db7fd7a9.tar.gz
otp-b9051f0f94c3d9f56f9d8d9b9c316446db7fd7a9.tar.bz2
otp-b9051f0f94c3d9f56f9d8d9b9c316446db7fd7a9.zip
Use file:name_all() on spawn_executable
The spawn_executable option in open_port supports binaries so we update its typespec accordingly.
-rw-r--r--erts/preloaded/src/erlang.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/preloaded/src/erlang.erl b/erts/preloaded/src/erlang.erl
index ac73946dc0..0ead6ffbc2 100644
--- a/erts/preloaded/src/erlang.erl
+++ b/erts/preloaded/src/erlang.erl
@@ -2186,7 +2186,7 @@ nodes(_Arg) ->
-spec open_port(PortName, PortSettings) -> port() when
PortName :: {spawn, Command :: string() | binary()} |
{spawn_driver, Command :: string() | binary()} |
- {spawn_executable, FileName :: file:name() } |
+ {spawn_executable, FileName :: file:name_all() } |
{fd, In :: non_neg_integer(), Out :: non_neg_integer()},
PortSettings :: [Opt],
Opt :: {packet, N :: 1 | 2 | 4}