diff options
author | Rickard Green <[email protected]> | 2018-04-13 13:36:29 +0200 |
---|---|---|
committer | Rickard Green <[email protected]> | 2018-04-13 13:36:29 +0200 |
commit | fa26cb5a3f7550d5779dce7de748bf91a4bc405e (patch) | |
tree | 75d1aa05f03495479348d5f957e4931118b69b2a /erts/emulator/beam/break.c | |
parent | 30fd5b9e98268305762b9647d1bf40df665ae54d (diff) | |
parent | 9f8a402cc3e49313089bb9e22bc625f07beea4ca (diff) | |
download | otp-fa26cb5a3f7550d5779dce7de748bf91a4bc405e.tar.gz otp-fa26cb5a3f7550d5779dce7de748bf91a4bc405e.tar.bz2 otp-fa26cb5a3f7550d5779dce7de748bf91a4bc405e.zip |
Merge branch 'rickard/process_info/OTP-14966'
* rickard/process_info/OTP-14966:
New process_info() implementation using signals
Diffstat (limited to 'erts/emulator/beam/break.c')
-rw-r--r-- | erts/emulator/beam/break.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/erts/emulator/beam/break.c b/erts/emulator/beam/break.c index 4dabac3512..ba8cc5e2ba 100644 --- a/erts/emulator/beam/break.c +++ b/erts/emulator/beam/break.c @@ -204,6 +204,7 @@ print_process_info(fmtfn_t to, void *to_arg, Process *p) { int garbing = 0; int running = 0; + Sint len; struct saved_calls *scb; erts_aint32_t state; @@ -252,9 +253,9 @@ print_process_info(fmtfn_t to, void *to_arg, Process *p) erts_print(to, to_arg, "Spawned by: %T\n", p->parent); erts_proc_lock(p, ERTS_PROC_LOCK_MSGQ); - erts_proc_sig_fetch(p); + len = erts_proc_sig_fetch(p); erts_proc_unlock(p, ERTS_PROC_LOCK_MSGQ); - erts_print(to, to_arg, "Message queue length: %d\n", p->sig_qs.len); + erts_print(to, to_arg, "Message queue length: %d\n", len); /* display the message queue only if there is anything in it */ if (!ERTS_IS_CRASH_DUMPING && p->sig_qs.first != NULL && !garbing) { |