aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/src/user.erl
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2019-01-28 17:36:31 +0100
committerSverker Eriksson <[email protected]>2019-01-28 19:43:24 +0100
commitad5822c6b1401111bbdbc5e77fe097a3f1b2b3cb (patch)
tree2d8520bde623c7aeb6812f4fe63a597467812e79 /lib/kernel/src/user.erl
parenta4aeacd28e4e31d3d79b091afcdc528082be2865 (diff)
downloadotp-ad5822c6b1401111bbdbc5e77fe097a3f1b2b3cb.tar.gz
otp-ad5822c6b1401111bbdbc5e77fe097a3f1b2b3cb.tar.bz2
otp-ad5822c6b1401111bbdbc5e77fe097a3f1b2b3cb.zip
erts: Add magic port control numbers
to increase the probablity of a nice badarg from erlang:port_control.
Diffstat (limited to 'lib/kernel/src/user.erl')
-rw-r--r--lib/kernel/src/user.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/kernel/src/user.erl b/lib/kernel/src/user.erl
index 872e63ab53..0c9e1ea303 100644
--- a/lib/kernel/src/user.erl
+++ b/lib/kernel/src/user.erl
@@ -28,7 +28,8 @@
-define(NAME, user).
%% Defines for control ops
--define(CTRL_OP_GET_WINSIZE,100).
+-define(ERTS_TTYSL_DRV_CONTROL_MAGIC_NUMBER, 16#018b0900).
+-define(CTRL_OP_GET_WINSIZE, (100 + ?ERTS_TTYSL_DRV_CONTROL_MAGIC_NUMBER)).
%%
%% The basic server and start-up.