aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/sys
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2019-02-06 20:17:39 +0100
committerSverker Eriksson <[email protected]>2019-02-06 20:26:22 +0100
commit3f5c2b86b7dcd1d8b5a2eacad92b659ac9709a53 (patch)
treee4c90968ad38ad1a8c0f117f0c6af579e306e778 /erts/emulator/sys
parent3825199794da28d79b21052a2e69e2335921d55e (diff)
downloadotp-3f5c2b86b7dcd1d8b5a2eacad92b659ac9709a53.tar.gz
otp-3f5c2b86b7dcd1d8b5a2eacad92b659ac9709a53.tar.bz2
otp-3f5c2b86b7dcd1d8b5a2eacad92b659ac9709a53.zip
erts: Fix faulty debug assert in enif_select
Diffstat (limited to 'erts/emulator/sys')
-rw-r--r--erts/emulator/sys/common/erl_check_io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/sys/common/erl_check_io.c b/erts/emulator/sys/common/erl_check_io.c
index c681fa481f..1f5c87c523 100644
--- a/erts/emulator/sys/common/erl_check_io.c
+++ b/erts/emulator/sys/common/erl_check_io.c
@@ -962,7 +962,7 @@ enif_select(ErlNifEnv* env,
ErtsDrvSelectDataState *free_select = NULL;
ErtsNifSelectDataState *free_nif = NULL;
- ASSERT(!resource->monitors);
+ ASSERT(!erts_dbg_is_resource_dying(resource));
#ifdef ERTS_SYS_CONTINOUS_FD_NUMBERS
if (!grow_drv_ev_state(fd)) {