aboutsummaryrefslogtreecommitdiffstats
path: root/erts/preloaded/src/erlang.erl
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2013-04-29 12:59:05 +0200
committerRickard Green <[email protected]>2013-04-29 12:59:05 +0200
commitfebb7963a74930dccccd3d23ef56a54d27fd2549 (patch)
treec36ce8a6cdea6f02a4f07798a47cb99cf61be362 /erts/preloaded/src/erlang.erl
parentad7231b1b5227f2ba9baa58c1c436ff9a95d2c67 (diff)
downloadotp-febb7963a74930dccccd3d23ef56a54d27fd2549.tar.gz
otp-febb7963a74930dccccd3d23ef56a54d27fd2549.tar.bz2
otp-febb7963a74930dccccd3d23ef56a54d27fd2549.zip
Do not treat port_set_data/port_get_data as signals
Diffstat (limited to 'erts/preloaded/src/erlang.erl')
-rw-r--r--erts/preloaded/src/erlang.erl20
1 files changed, 4 insertions, 16 deletions
diff --git a/erts/preloaded/src/erlang.erl b/erts/preloaded/src/erlang.erl
index 8e4a471a82..7e53bc486f 100644
--- a/erts/preloaded/src/erlang.erl
+++ b/erts/preloaded/src/erlang.erl
@@ -2705,26 +2705,14 @@ port_info(Port, Item) ->
Port :: port() | atom(),
Data :: term().
-port_set_data(Port, Data) ->
- case case erts_internal:port_set_data(Port, Data) of
- Ref when erlang:is_reference(Ref) -> receive {Ref, Res} -> Res end;
- Res -> Res
- end of
- badarg -> erlang:error(badarg, [Port, Data]);
- Result -> Result
- end.
+port_set_data(_Port, _Data) ->
+ erlang:nif_error(undefined).
-spec erlang:port_get_data(Port) -> term() when
Port :: port() | atom().
-port_get_data(Port) ->
- case case erts_internal:port_get_data(Port) of
- Ref when erlang:is_reference(Ref) -> receive {Ref, Res} -> Res end;
- Res -> Res
- end of
- {ok, Data} -> Data;
- Error -> erlang:error(Error, [Port])
- end.
+port_get_data(_Port) ->
+ erlang:nif_error(undefined).
%%
%% If the emulator wants to perform a distributed command and