aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/sys
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2019-02-20 16:04:58 +0100
committerSverker Eriksson <[email protected]>2019-02-20 16:04:58 +0100
commit9197f6ea9af095eebbbf42e4ceca5ef762467276 (patch)
tree56e088a1c6e3ddeea421525e8eb4d0db044535e8 /erts/emulator/sys
parent1468c77c81de0f7c44e44d8c4a430ff0ee809736 (diff)
downloadotp-9197f6ea9af095eebbbf42e4ceca5ef762467276.tar.gz
otp-9197f6ea9af095eebbbf42e4ceca5ef762467276.tar.bz2
otp-9197f6ea9af095eebbbf42e4ceca5ef762467276.zip
erts: 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 e367087455..68b780b6a0 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) {