aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/sys
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2019-02-22 13:33:47 +0100
committerGitHub <[email protected]>2019-02-22 13:33:47 +0100
commitd49b77d0c250e0dfd183ec0f62664f4f60c2ffec (patch)
tree531da8b58ab0b8ecd2ebc427d3c1b6a8c943a56a /erts/emulator/sys
parent1af28d672de91a12bea2c6332a14f040fbf4d63a (diff)
parentedcec4c9166bfdfbd3131ee1472abcade8ccac15 (diff)
downloadotp-d49b77d0c250e0dfd183ec0f62664f4f60c2ffec.tar.gz
otp-d49b77d0c250e0dfd183ec0f62664f4f60c2ffec.tar.bz2
otp-d49b77d0c250e0dfd183ec0f62664f4f60c2ffec.zip
Merge PR-2147 from sverker/sverker/enif-null-pid/OTP-15011
Add enif_set_pid_undefined & enif_is_pid_undefined
Diffstat (limited to 'erts/emulator/sys')
-rw-r--r--erts/emulator/sys/common/erl_check_io.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/erts/emulator/sys/common/erl_check_io.c b/erts/emulator/sys/common/erl_check_io.c
index a699ece23e..80e8030d74 100644
--- a/erts/emulator/sys/common/erl_check_io.c
+++ b/erts/emulator/sys/common/erl_check_io.c
@@ -1181,6 +1181,7 @@ enif_select_x(ErlNifEnv* env,
if (on) {
const Eterm recipient = pid ? pid->pid : env->proc->common.id;
+ ASSERT(is_internal_pid(recipient));
if (!state->driver.nif)
state->driver.nif = alloc_nif_select_data();
if (state->type == ERTS_EV_TYPE_NONE) {