diff options
author | Lukas Larsson <[email protected]> | 2014-04-28 15:52:58 +0200 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2014-05-05 15:25:07 +0200 |
commit | 8f673dbd8d4cb5c832b6e79bd2304949f4123981 (patch) | |
tree | cc896eb5e42f89d359ad2f994115de7751f48fb9 | |
parent | 4d957870d4e5ae98e91b9118f8b2e8319ab4fa33 (diff) | |
download | otp-8f673dbd8d4cb5c832b6e79bd2304949f4123981.tar.gz otp-8f673dbd8d4cb5c832b6e79bd2304949f4123981.tar.bz2 otp-8f673dbd8d4cb5c832b6e79bd2304949f4123981.zip |
erts: Fix faulty process suspend assert
-rw-r--r-- | erts/emulator/beam/erl_process.c | 2 |
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 { |