aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_process.c
diff options
context:
space:
mode:
authorLukas Larsson <lukas@erlang-solutions.com>2014-04-28 15:52:58 +0200
committerLukas Larsson <lukas@erlang-solutions.com>2014-05-05 15:25:07 +0200
commit8f673dbd8d4cb5c832b6e79bd2304949f4123981 (patch)
treecc896eb5e42f89d359ad2f994115de7751f48fb9 /erts/emulator/beam/erl_process.c
parent4d957870d4e5ae98e91b9118f8b2e8319ab4fa33 (diff)
downloadotp-8f673dbd8d4cb5c832b6e79bd2304949f4123981.tar.gz
otp-8f673dbd8d4cb5c832b6e79bd2304949f4123981.tar.bz2
otp-8f673dbd8d4cb5c832b6e79bd2304949f4123981.zip
erts: Fix faulty process suspend assert
Diffstat (limited to 'erts/emulator/beam/erl_process.c')
-rw-r--r--erts/emulator/beam/erl_process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/erl_process.c b/erts/emulator/beam/erl_process.c
index b4b97d7df1..55036a569e 100644
--- a/erts/emulator/beam/erl_process.c
+++ b/erts/emulator/beam/erl_process.c
@@ -6144,7 +6144,7 @@ suspend_process(Process *c_p, Process *p)
if (c_p == p) {
state = erts_smp_atomic32_read_bor_relb(&p->state,
ERTS_PSFLG_SUSPENDED);
- ASSERT(state & ERTS_PSFLG_RUNNING);
+ ASSERT(state & (ERTS_PSFLG_RUNNING|ERTS_PSFLG_RUNNING_SYS));
suspended = (state & ERTS_PSFLG_SUSPENDED) ? -1: 1;
}
else {